Getting Data In

How to chart counts of events as Y axis, time as X axis and legend as field values?

splunk_new1
Explorer

Hi! I'm new to using splunk and I am currently trying to chart a series of events over a time period. I have managed to use the rex command and extracted out the values of interest to me. 

Right now I would like to make it such that each individual "power" values are appearing as a line on its own with it's own legend, similar to how timechart would look like. How can I do that? 

Screenshot 2020-10-14 040743.png

Screenshot 2020-10-14 040332.png

Also, I have another 5 events together in this index which are not the same format as the other logs in this index, is it possible for me to also use rex to extract them into another field and finally COMBINE both extracted REX fields into one big happy timechart/chart? 

 

 

expectedexpected
something like this ^


I appreciate your time and thanks in advance for the help! 

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| stats count by _time power

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
| stats count by _time power

splunk_new1
Explorer

Great! This solved my issue and helped me further with my splunk searches! Thanks so much! Sorry for the late reply.

0 Karma
Get Updates on the Splunk Community!

Celebrating Fast Lane: 2025 Authorized Learning Partner of the Year

At .conf25, Splunk proudly recognized Fast Lane as the 2025 Authorized Learning Partner of the Year. This ...

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...