Skip to content

Instantly share code, notes, and snippets.

@stecog
Last active November 20, 2021 09:11
Show Gist options
  • Save stecog/7a009e1fc5fb055230f4b8c3424e16a3 to your computer and use it in GitHub Desktop.
Save stecog/7a009e1fc5fb055230f4b8c3424e16a3 to your computer and use it in GitHub Desktop.
Logstash cantaloupe pattern
filter {
if [fields][from] == "cantaloupe" {
grok {
match => { "message" => "%{NOTSPACE:date} %{NOTSPACE:time} %{LOGLEVEL:loglevel} %{NOTSPACE:taskid} %{NOTSPACE:class} %{GREEDYDATA:message}" }
add_field => [ "logtype", "cantaloupe" ]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment