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!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...