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!

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

This is the sixth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Answers Content Calendar, July Edition I

Hello Community! Welcome to another month of Community Content Calendar series! For the month of July, we will ...