Splunk Search

Only show Count > X in Timechart

wbordeau
Explorer

I want to hide peaks in timechart that do not exceed a certain threshold. I'm trying the below query but am not having much success.

earliest=-7d@d latest=now sourcetype="squid" clientip=x.x.x.x | bucket_time span=1h | timechart span=30m count by clientip usenull=f useother=f where count>18000

Tags (2)
0 Karma

sowings
Splunk Employee
Splunk Employee

Try doing everything up to your timechart command, including its arguments, but instead of the "where", add the where as a separate search command, like this: | where count > 18000. The result set that timechart creates (you can view it as a table, if you wish) is then filtered to consider only certain events. Note that this may leave gaps in the data set....

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...