Splunk Search

Sort result by date and show it on Dashboard

toshiro92
Engager

Hi all,

I'm newbie with Splunk, and i try to show each value by date with columns, but i have always the "count" value.

First, i wanted to show all File Name existing on my search, with :

host="sample" Executed="Yes" Username="user" "File Name"="*"  | top limit=20 "File Name" | 

The results was 5 lines and three columns "File Name", "Count" and "Percent", that are default columns. Each File was executed 3 times at different periods of time, so i wanted to show all with the column graph, but after tries, it didn't. I tried to follow This example to understand time on Splunk and adapted it like this :

host="sample" Executed="Yes" Username="user" "File Name"="*"  | top limit=20 "File Name" |  eval weekDay = strftime(_time,"%a") | eval HourOfDay = strftime(_time,"%H") | table _time, weekDay, HourOfDay

The result was best, but i don't know how to show the "File Name" column on the table. I missed something, can you help me ?

Thank you.

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Have you tried this ?

... | table _time weekDay HourOfDay "File Name"
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Have you tried this ?

... | table _time weekDay HourOfDay "File Name"
---
If this reply helps you, Karma would be appreciated.

sideview
SplunkTrust
SplunkTrust

or ... | timechart count by "File Name" for that matter.

toshiro92
Engager

Oh ok, that was so simple, i tried a more complex solution.

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...