Splunk Search

How to get data for latest 10 weeks in splunk chart?

Vish
Explorer

I have a bar chart in splunk which has x-axis as each week from 2019 to 2023 and y-axis as count of data.

Now i want to get only the latest 10 weeks in x-axis

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Vish ,

did you tried to use 

earliest=-10w

in your main search?

otherwise, if you're using timechart command, you could use the "bin" option as described at https://docs.splunk.com/Documentation/SCS/current/SearchReference/TimechartCommandSyntaxDetails 

ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

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

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...