Splunk Search

Ingore last result in timechart

Ponczi1
Explorer

Hello i have a search query with timechart function but i don't want to display last bucket because it shows not complete data.
I use 5m span and i would like to display ONLY the time frames that have completely passed. Is there an easy way to achieve this?

Tags (2)
0 Karma
1 Solution

bmacias84
Champion

Timechart has a command option call partial. By default this is set to true, so set this to false. Only the first and last buckets can be partials. http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Timechart

...| timechart partial=False count by foo

View solution in original post

mayurr98
Super Champion

can you provide the timechart query that you have?

0 Karma

bmacias84
Champion

Timechart has a command option call partial. By default this is set to true, so set this to false. Only the first and last buckets can be partials. http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Timechart

...| timechart partial=False count by foo

cmerriman
Super Champion

this is a bit tedious, but should get you what you need.

....|<timechart>|reverse|streamstats count|search count>1|reverse
Get Updates on the Splunk Community!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...