I have these three lines of log messages:
2019-01-10 15:41:22,164 INFO [ajp-nio-8010-exec-21] wt.system.out manlla - specIdOR:com.lcs.wc.specification.FlexSpecToSeasonLink:1071796633
2019-01-10 15:41:24,160 DEBUG [ajp-nio-8010-exec-34] rfa.jsp.main.Main manlla -
#################################################################
[REQUEST MADE]
user = manlla
ipAddress = 0.0.0.0
host = 0.0.0.0
activity = VIEW_SEASON_PRODUCT_LINK
action =
oid = OR:com.lcs.wc.specification.FlexSpecToSeasonLink:10717
oidList = null
returnActivity = VIEW_SEASON_PRODUCT_LINK
returnAction = INIT
returnOid = OR:com.lcs.wc.specification.FlexSpecToSeasonLink:10717
typeOid =
typeAttributeOid =
tabId =
tabPage = SOURCING
errorMessage = null
sessionId = D90C1D4507BEB3F2B112B0D843.tomcat1
#################################################################
url = ?activity=VIEW_SEASON_PRODUCT_LINK&action=&oid=OR:com.lcs.wc.specification.FlexSpecToSeasonLink:1071796633&oidList=null&typeOid=&typeAttributeOid=&tabId=&tabPage=SOURCING
#################################################################
2019-01-10 15:41:24,199 DEBUG [ajp-nio-8010-exec-34] rfa.jsp.main.MainTemplate manlla - templateType =
I'm able to parse the first line correctly with this GROK pattern:
%{DATESTAMP:timestamp} %{WORD:severity} %{DATA:var1} %{JAVACLASS:out} %{USERNAME:user} %{GREEDYDATA:msg}
However, I'm having trouble getting to the second log line. Once that line's parsed I'd need to ignore all the # and set the msg field starting from [REQUEST MADE] and end it at the next instance of a log message.
Any help on this would be appreciated! I'm using the GROK debugger to parse this so let me know if more info is required.