10class.mql 856 B

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