- When I remove the remarks below the filter stops working, but I get no errors. All that happens is no untangle-syslog messages go in to elasticsearch when the remarks are removed. Type is assigned to the message by the input.
- filter {
- if [type] == "untangle-syslog" {
- #multiline {
- # pattern => "...$"
- # what => "next"
- # add_tag => "multiline-joined"
- #}
- grok {
- match => { "message" => "<%{POSINT:priority}>%{SYSLOGTIMESTAMP:syslogtimestamp} localhost node-17: \[SyslogManagerImpl\] <(?:%{WORD:Protocol}|)> %{WORD:Severity}\s*uvm\[0\]:\s*%{GREEDYDATA:jsonmessage}" }
- add_tag => "untangle-syslog"
- tag_on_failure => "untangle_syslog_grok_failure"
- }
- mutate {
- gsub => [ "jsonmessage", '"host"', '"websiteHost"' ]
- }
- json {
- source => "jsonmessage"
- }
- date {
- match => [ "timeStamp", "yyyy-MM-dd HH:mm:ss.SSS" ]
- }
- }
- }
- An example of 2 log entries which I want the multiline filter to apply to:
- <142>Mar 31 10:15:00 localhost node-17: [SyslogManagerImpl] <TCP93307337274539> INFO uvm[0]: {"requestUri":"/crx/blobs/QwAAAHF3InbmK-wFIemaY3I3BCOq0yK5095sXVI3hELfKl-_t_oI3qZ_s_cgM8T77YiCUmJqoW79hErIdhQBhFoE1annCDXfsK73DMJ46UirxKPLAMZSmuUtnpgw8IDYTbdzXN6jEe4tXaxNzQ/extension_1_4_7_771.crx?cms_redirect=yes&expire=1427807700&ip=109.234.205.197&ipbits=0&mm=31&ms=au&mt=1427793009&mv=u&nh=IgpwcjAzLmxocjE0KgkxMjcuMC4wLjE&pl=25&sparams=expire,ip,ipbits,mm,ms,mv,nh,pl&signature=03456BD3052E1640E3CF67FAEF3A335D03FEE03A.6C2625304A8774DFD168EF68C09973E681566FF1&key=cms1","host":"r3---sn-aigllnlk.c.pack.google.com","timeStamp":"2015-03-31 10:15:00.994",...
- <142>Mar 31 10:15:00 localhost ..."sessionId": 93307337274539,"requestId":93307337040336,"tag":"uvm[0]: ","class":"class com.untangle.node.http.HttpRequestEvent","method":"GET","sessionEvent":{"protocol":6,"timeStamp":"2015-03-31 10:15:00.982","SClientAddr":"/192.168.1.11","tag":"uvm[0]: ","CServerAddr":"/173.194.3.72","protocolName":"TCP","CClientAddr":"/10.0.9.30","class":"class com.untangle.uvm.node.SessionEvent","hostname":"SQ-G-F4","SClientPort":14237,"serverIntf":1,"CServerPort":80,"username":"dpassey","clientIntf":2,"sessionId":93307337274539,"policyId":18,"SServerPort":80,"SServerAddr":"/173.194.3.72","CClientPort":2133},"contentLength":0}
SHARE
TWEET
using multiline filter with syslog messages from untangle
a guest
Mar 31st, 2015
218
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
