Splunk Search

Removing a line from a timechart?

thefosk
Engager

Within our application we are tracking a "Pings" metric, and in our query we are showing pings over time along with a metric called "instances" that's calculated in real-time by dividing "Pings" by 24:

index="helloworld" metric="ping" | timechart count as Pings span=1d | eval Instances=floor(Pings/24)

This query has the result of showing both "Pings" and "Instances" in the timechart. How can we only display "Instances" and remove the "Pings" line?

Tags (3)
0 Karma
1 Solution

Richfez
SplunkTrust
SplunkTrust

Just remove it with the fields command at the end of your search.

... | fields - Pings

That should remove "Pings" but leave all else.

View solution in original post

Richfez
SplunkTrust
SplunkTrust

Just remove it with the fields command at the end of your search.

... | fields - Pings

That should remove "Pings" but leave all else.

Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...