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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...