Splunk Search

search by range & dashboard help

changwoo
Communicator

i am trying to search by year

i have a field like movie_year ( ex: 1991, 1999, 2000)

and i want make a dashboard which is seperated by 10years

what can i do ?

Tags (3)
0 Karma
1 Solution

HiroshiSatoh
Champion

For example, a search sentence can be made in this way.
・・・・|eval years=substr(movie_year,1,3) + "0'S"

movie_year,years,・・・
1980,1980'S,・・・
1981,1980'S,・・・
1992,1990'S,・・・
1999,1990'S,・・・

I do not know that there is no image dashboard.

View solution in original post

somesoni2
Revered Legend

Are looking to group movies by decade? If yes than try this

your search | eval decade=floor(movie_year/10)*10

This will give values like this
movie_year decade
1991 1990
1999 1990
2000 2000
2003 2000

field value which is 10 year apart.

HiroshiSatoh
Champion

For example, a search sentence can be made in this way.
・・・・|eval years=substr(movie_year,1,3) + "0'S"

movie_year,years,・・・
1980,1980'S,・・・
1981,1980'S,・・・
1992,1990'S,・・・
1999,1990'S,・・・

I do not know that there is no image dashboard.

changwoo
Communicator

thanks for your help

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...