Splunk Search

Merge multiple rows into one of a field

obularajud16
Explorer

With the below query I am able to get data as below(first one) and I need to convert it as second box

 

For the time field I am getting common values and i need to merge and combine them as shown. is there any way to achieve this, I've tried with values() but it is not working

 

obularajud16_0-1598881034465.png

 

 

sourcetype=access_combined | eval action = if(isnull(action) OR action="", "unknown", action) | bin _time span=102h  |eval Time=strftime(_time,"%Y-%m-%d %H:%M:%S") | stats  count as totals by action,Time | sort -Time,action

 

 

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Have you tried adding

...
| stats values(action) as action, values(totals) as totals by Time
| fields action, Time, totals

 

0 Karma

obularajud16
Explorer

Yes, but it's not worked. 

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...