11 lines
277 B
Go
11 lines
277 B
Go
package 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)
|
|
}
|
|
}
|