12valid.mql 934 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. select bklog FROM /test/bucketlog
  2. /**
  3. output()
  4. match('bklog.len',10,'bklog.0.len',4)
  5. match('bklog.0.1','file1.log','bklog.4.1','file1.log','bklog.9.1','file1.log')
  6. **/
  7. ;
  8. SELECT bklog.time('2020-04-22', '').inst() FROM /test/bucketlog
  9. /**
  10. output()
  11. match('bklog.0.0','file1.log')
  12. **/
  13. ;
  14. SELECT bklog.date("2020-06-28").inst() FROM /test/bucketlog
  15. /**
  16. output()
  17. match('bklog.0.0','file1.log')
  18. **/
  19. ;
  20. SELECT bklog["file*.log"{116669996670004, 116669996680008}] FROM /test/bucketlog
  21. /**
  22. output()
  23. **/
  24. ;
  25. SELECT bklog["file1.log"{1,3,6,7}].time('2020-06-25 00:49:59,667', '').find( "twcs skipping" ) FROM /test/bucketlog
  26. /**
  27. output()
  28. **/
  29. ;
  30. SELECT bklog.time('2020-06-23 14:50','2020-06-23 15:00').find('twcs'),id FROM /test/bucketlog
  31. /**
  32. output()
  33. **/
  34. ;
  35. SELECT id FROM /test/bucketlog where bklog.time("2020-05-01","").find("INFO").assert()
  36. /**
  37. output()
  38. **/
  39. ;
  40. select bklog2 FROM /test/bucketlog2
  41. /**
  42. output()
  43. match('bklog2.len',10)
  44. **/
  45. ;