10class.mql 844 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. create class if not exists /test();
  2. alter /test/ drop column bklog3
  3. /**
  4. onerror(continue)
  5. **/
  6. ;
  7. create class if not exists /test/bucketlog (
  8. host varchar,
  9. bklog bucket {
  10. "type" : "bitlog",
  11. "files": ["*.log"],
  12. "sample" : ["2020-05-15 00:49:59,666"],
  13. "ttl" : 365
  14. } 'full',
  15. keys(host),
  16. indexes(host)
  17. ) with key=manu, nickname='bucketlog'
  18. ;
  19. create class if not exists /test/bucketlog2 (
  20. host varchar,
  21. bklog2 bucket {
  22. "type" : "bitlog",
  23. "files": ["*.log"],
  24. "sample" : ["2020-05-15 00:49:59,666"],
  25. "ttl" : 365
  26. } 'full',
  27. keys(host),
  28. indexes(host)
  29. ) with key=manu, nickname='bucketlog2'
  30. ;