fix: minor bugs && example
This commit is contained in:
7
main.go
7
main.go
@@ -1,5 +1,10 @@
|
||||
package main
|
||||
|
||||
func main() {
|
||||
import "github.com/e1lama/spl/lexer"
|
||||
|
||||
func main() {
|
||||
tokens := lexer.Tokenize(`index=security (action=failed OR action=denied or action=accepted) host!="localhost" | stats count by dest_ip | sort -count`)
|
||||
for _, token := range tokens {
|
||||
lexer.Debug(token)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user