Skip to content

Commit b4c9a18

Browse files
committed
add query examples to help output
1 parent 07cdb19 commit b4c9a18

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

loggly.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,31 @@ const usage = `
3333
--json output json array of events
3434
--count output total event count
3535
--version output version information
36+
37+
Operators:
38+
39+
"foo bar" AND baz
40+
foo AND bar NOT baz
41+
+foo +bar -baz
42+
foo OR bar
43+
json.responseTime[50 TO 100]
44+
json.duration[1000 TO *]
45+
46+
47+
Fields:
48+
49+
json.level:error
50+
json.type:"upload failed"
51+
json.hostname:"api-*"
52+
53+
Grouping:
54+
55+
foo AND (bar OR baz)
56+
57+
Regexps:
58+
59+
/Black(Berry)?/
60+
3661
`
3762

3863
//

0 commit comments

Comments
 (0)