Hi,
Require to combine events having one field value same and create single row .
Query:
index=webmethods_dev5555_index 0000000001515185
| rex field=_raw "(?<wmDateTime>[\d\-:\s]+) .*"
| rex field=messageId "(?<docNum>\d+)\|\|(?<whoNum>.*)"
| eval wmcreateDateTime= if( like( message, "%request from EWM%" ), wmDateTime,"")
| eval wmconfirmDateTime=if( like( message, "%request sent to Exacta successfully%" ), wmDateTime,"")
| eval wmsentDateTime=if( like( message, "%ready to send to Exacta%" ), wmDateTime,"")
| lookup wminterface_mapping.csv wmInterface as interface OUTPUT Interface
| table whoNum,Interface,wmcreateDateTime,wmconfirmDateTime,wmsentDateTime
OUTPUT:
We Want output in below format
suggest query to get desired output.
Hi @Abhineet,
please try this:
index=webmethods_dev5555_index 0000000001515185
| rex field=_raw "(?<wmDateTime>[\d\-:\s]+) .*"
| rex field=messageId "(?<docNum>\d+)\|\|(?<whoNum>.*)"
| eval wmcreateDateTime= if( like( message, "%request from EWM%" ), wmDateTime,"")
| eval wmconfirmDateTime=if( like( message, "%request sent to Exacta successfully%" ), wmDateTime,"")
| eval wmsentDateTime=if( like( message, "%ready to send to Exacta%" ), wmDateTime,"")
| lookup wminterface_mapping.csv wmInterface as interface OUTPUT Interface
| stats
values(wmcreateDateTime) AS wmcreateDateTime
values(wmconfirmDateTime) AS wmconfirmDateTime
values(wmsentDateTime) AS wmsentDateTime
BY whoNum nterface
Ciao.
Giuseppe