Skip to content

Instantly share code, notes, and snippets.

@electrical
Created January 31, 2013 20:11
Show Gist options
  • Save electrical/4685987 to your computer and use it in GitHub Desktop.
Save electrical/4685987 to your computer and use it in GitHub Desktop.
stunnel logstash
filter {
grok {
patterns_dir => '/root/ls-patterns'
pattern => [ "%{STUNNELSERVICE}", "%{STUNNELCONNECT}", "%{STUNNELGENERAL}" ]
}
}
STUNNELPREFIX ^LOG%{NUMBER:level:int}\[%{NUMBER:pid:int}:%{NUMBER:thread_id:int}\]:
STUNNELSERVICE %{STUNNELPREFIX} Service %{WORD:service} %{GREEDYDATA:message} %{IPORHOST:from_host}:%{NUMBER:from_port:int}
STUNNELCONNECT %{STUNNELPREFIX} %{GREEDYDATA:message} %{IPORHOST:to_host}:%{NUMBER:to_port:int}
STUNNELGENERAL %{STUNNELPREFIX} %{GREEDYDATA:message}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment