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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...