Dashboards & Visualizations

dashboard

revanthammineni
Path Finder

Hi Splunkers!

I'm working on an usecase to show a weekly basis of root information of linux data.

index=os user=root sourcetype=linux_secure  action=success app=sshd OR app=su
| eval _time=relative_time(_time, "@w1")
| timechart span=1w count by app

Above query is actaully working but it's giving out other timelines as well, Which is something confusing to my team. I'm looking for just the weekly line chart with dates and no other timeframes shown in the chart.

Help me in solving this case.
Attaching the screenshot. Appreciate your help!

Labels (2)
0 Karma
1 Solution

renjith_nair
Legend

Data result should be based on your time range selection.

Are you using relative time to snap to week start ? 

have you tried below with required time window?

index=os user=root sourcetype=linux_secure  action=success app=sshd OR app=su
| timechart span=1w@w count by app

 

---
What goes around comes around. If it helps, hit it with Karma 🙂

View solution in original post

renjith_nair
Legend

Data result should be based on your time range selection.

Are you using relative time to snap to week start ? 

have you tried below with required time window?

index=os user=root sourcetype=linux_secure  action=success app=sshd OR app=su
| timechart span=1w@w count by app

 

---
What goes around comes around. If it helps, hit it with Karma 🙂

revanthammineni
Path Finder

Thank you Rajesh!  It helped.

0 Karma
Get Updates on the Splunk Community!

Index This | What did the zero say to the eight?

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

Splunk Observability Cloud's AI Assistant in Action Series: Onboarding New Hires & ...

This is the fifth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Now Playing: Splunk Education Summer Learning Premieres

It’s premiere season, and Splunk Education is rolling out new releases you won’t want to miss. Whether you’re ...