Dashboards & Visualizations

Graph

mfudali
Explorer

Hi, we have two fields, latency and partition. I want to graph the latency vs. time on one of our machines for each of our partitions. So the resulting panel will have four separate line graphs. The log output we have is: 

 

mfudali_1-1633990047720.png

As you can see, there are 4 different partitions 00-BTECEU, 01-BTECEU, 02-BTECEU, 03-BTECEU. I was able to parse for the partition, but I'm having issues separating the latency for each partition. 

 

Here's the query I tried, but the resulting table is empty:

 

host=irmnrjeb0227d AND latency | reverse | rex field=name "Partition\s(?<pName>\d\d\W\w+)" | streamstats current=f last(latency) as previouslatency by pName | rename latency as currentLatency | eval delta = currentLatency - previouslatency | timechart span=30s first(delta) as Delta by pName

 

Any help is appreciated, thanks!

 

Labels (1)
0 Karma

bowesmana
SplunkTrust
SplunkTrust

If you are looking for the rex statement to extract both fields, then use this

| rex field=name "Partition\s(?<pName>\d\d\W\w+)\smax\slatency\s(?<latency>\d+)" 

Note that the rename command is redundant, as you could use latency in the delta calculation

 

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...