Hello ,
My Grok filter looks like below
grok {
match => ["message","%{WORD:ACT_SV_NAME}%{SPACE}%{WORD:ACT_CC_Alias}%{SPACE}%{WORD:ACT_CG_ALIAS}%{SPACE}%{WORD:ACT_Running_Status}%{SPACE}%{GREEDYDATA:ACT_OM_Session}","%{WORD:SBLSRVR_NAME}%{SPACE}%{WORD:SBLSRVR_STATE}","%{WORD:ServerName}%{SPACE}%{WORD:Comp_Alias}%{SPACE}%{WORD:CompStatus}%{SPACE}%{WORD:CompStartMode}%{SPACE}%{NUMBER:RunningTasks:int}%{SPACE}%{NUMBER:MaxTasks:int}"]
}
Output looks as below
Siebel Enterprise Applications Siebel Server Manager, Version 16.19.0.0 [23057] LANG_INDEPENDENT
Copyright (c) 2008,2016, Oracle. All rights reserved.
The Programs (which include both the software and documentation) contain
proprietary information; they are provided under a license agreement containing
restrictions on use and disclosure and are also protected by copyright, patent,
and other intellectual and industrial property laws. Reverse engineering,
disassembly, or decompilation of the Programs, except to the extent required to
obtain interoperability with other independently created software or as specified
by law, is prohibited.
Oracle, JD Edwards, PeopleSoft, and Siebel are registered trademarks of
Oracle Corporation and/or its affiliates. Other names may be trademarks
of their respective owners.
If you have received this software in error, please notify Oracle Corporation
immediately at 1.800.ORACLE1.
Type "help" for list of commands, "help <topic>" for detailed help
Connected to 13 server(s) out of a total of 13 server(s) in the enterprise
srvrmgr> list active sessions show SV_NAME,CC_ALIAS,CG_ALIAS,TK_DISP_RUNSTATE,OM_LOGIN
SV_NAME CC_ALIAS CG_ALIAS TK_DISP_RUNSTATE OM_LOGIN
------------ --------- --------- ---------------- ------------------------
D1220001028A ServerMgr System Running
D1220001028A ServerMgr System Running
D1220001028A ServerMgr System Running
D1220001028A SRProc SystemAux Running
D1220001028A SRProc SystemAux Running Forwarding Task
D1220001028A SRBroker System Running SRVR:D1220001032A
D1220001028A SRBroker System Running
D1220001028A SRBroker System Running
D1220001028A SRBroker System Running
D1220001028A SRBroker System Running SRVR:D1220001033A
D1220001028A SRBroker System Running
D1220001028A SRBroker System Running
D1220001028A SRBroker System Running
D1220001028A SRBroker System Running
D1220001028A SRBroker System Running
D1220001028A SRBroker System Running
D1220001028A SRBroker System Running
D1220001028A SRBroker System Running SRVR:D1220001031A
D1220001028A SRBroker System Running SRVR:D1220001022A
D1220001028A SRBroker System Running SRVR:D1220001005A
8A SRBroker System Running SRVR:D1220001019A
D1220001028A SRBroker System Running SRVR:D1220001026A
D1220001028A SRBroker System Running SRVR:D1220001030A
D1220001028A SRBroker System Running SRVR:D1220001017A
D1220001028A SRBroker System Running SRVR:D1220001023A
D1220001028A SRBroker System Running SRVR:D1220001027A
D1220001028A SRBroker System Running
D1220001028A SRBroker System Running
D1220001028A SRBroker System Running
D1220001028A SRBroker System Running
D1220001028A SRBroker System Running Store task
D1220001028A SRBroker System Running
D1220001028A SRBroker System Running Task creation task
D1220001028A SRBroker System Running Response task
D1220001028A SRBroker System Running Information caching task
D1220001027A ServerMgr System Running
D1220001027A ServerMgr System Running
D1220001027A ServerMgr System Running
D1220001027A SRProc SystemAux Running
D1220001027A SRProc SystemAux Running Forwarding Task
D1220001027A SRBroker System Running SRVR:D1220001032A
D1220001027A SRBroker System Running
D1220001027A SRBroker System Running
D1220001027A SRBroker System Running
D1220001027A SRBroker System Running SRVR:D1220001031A
D1220001027A SRBroker System Running SRVR:D1220001033A
D1220001027A SRBroker System Running SRVR:D1220001019A
D1220001027A SRBroker System Running SRVR:D1220001017A
D1220001027A SRBroker System Running SRVR:D1220001026A
D1220001027A SRBroker System Running SRVR:D1220001022A
D1220001027A SRBroker System Running SRVR:D1220001024A
D1220001027A SRBroker System Running SRVR:D1220001005A
D1220001027A SRBroker System Running SRVR:D1220001023A
D1220001027A SRBroker System Running SRVR:D1220001030A
D1220001027A SRBroker System Running
D1220001027A SRBroker System Running
D1220001027A SRBroker System Running
D1220001027A SRBroker System Running
D1220001027A SRBroker System Running
D1220001027A SRBroker System Running
D1220001027A SRBroker System Running
D1220001027A SRBroker System Running
D1220001027A SRBroker System Running SRVR:D1220001028A
D1220001027A SRBroker System Running
D1220001027A SRBroker System Running
D1220001027A SRBroker System Running Store task
D1220001027A SRBroker System Running Task creation task
D1220001027A SRBroker System Running Response task
D1220001031A SRBroker System Running Task creation task
srvrmgr> list comp show SV_NAME,CC_ALIAS,CP_DISP_RUN_STATE,CP_STARTMODE,CP_NUM_RUN_TASKS,CP_MAX_TASKS order by CP_DISP_RUN_STATE
SV_NAME CC_ALIAS CP_DISP_RUN_STATE CP_STARTMODE CP_NUM_RUN_TASKS CP_MAX_TASKS
------------ -------------- ----------------- ------------ ---------------- ------------
D1220001027A FSMSrvr Online Auto 0 20
D1220001027A ServerMgr Running Auto 3 20
D1220001027A SRBroker Running Auto 29 100
D1220001027A SRProc Running Auto 2 20
srvrmgr> list server show SBLSRVR_NAME,SBLSRVR_STATE
SBLSRVR_NAME SBLSRVR_STATE
------------ -------------
D1220001005A Running
D1220001022A Running
srvrmgr>
If you observe my output , it has 3 different kinds of patterns and hence I am trying to give 3 different grok filters in logstash.
Earlier I was using the below filter which works with two filters and when i add 3rd filter , it does not work.
grok {
match => {
"message" => [
#Most specific grok:
"%{WORD:ACT_SV_NAME}%{SPACE}%{WORD:ACT_CC_Alias}%{SPACE}%{WORD:ACT_CG_ALIAS}%{SPACE}%{WORD:ACT_Running_Status}%{SPACE}%{WORD:ACT_OM_Session}",
"%{WORD:SBLSRVR_NAME}%{SPACE}%{WORD:SBLSRVR_STATE}",
"%{WORD:ServerName}%{SPACE}%{WORD:Comp_Alias}%{SPACE}%{WORD:CompStatus}%{SPACE}%{WORD:CompStartMode}%{SPACE}%{NUMBER:RunningTasks:int}%{SPACE}%{NUMBER:MaxTasks:int}"
]
}
Any suggestions please ?