Dashboards & Visualizations

How to create and add each month (January, February, March, etc) to the preset time inputs for the time range picker?

renanprado96
Path Finder

Como criar "presets" dos meses, exemplo:
Janeiro, Fevereiro, Março, Abril, etc..
The months have to be fixed
Thanks..

0 Karma
1 Solution

woodcock
Esteemed Legend

I think that you are saying that you would like to add values to the timepicker. If so, try this:

Edit this file on your Search Head:

/opt/splunk/etc/system/local/times.conf

Add this entry (and similar):

[January]
label = January
header_label = January
earliest_time = -0d@y
latest_time = -0d@y+32d@mon

View solution in original post

woodcock
Esteemed Legend

I think that you are saying that you would like to add values to the timepicker. If so, try this:

Edit this file on your Search Head:

/opt/splunk/etc/system/local/times.conf

Add this entry (and similar):

[January]
label = January
header_label = January
earliest_time = -0d@y
latest_time = -0d@y+32d@mon

renanprado96
Path Finder

Cool, and how it would be in February?
:)

0 Karma

somesoni2
Revered Legend

Use
earliest_time=@y latest_time=@y+1mon for jan
earliest_time=@y+1mon latest_time=@y+2mon for feb
earliest_time=@y+2mon latest_time=@y+3mon for mar etc

renanprado96
Path Finder

Very Thanks!!

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Where or how do you want to use the presets?

---
If this reply helps you, Karma would be appreciated.
0 Karma

renanprado96
Path Finder

Add months here:

alt text

0 Karma

woodcock
Esteemed Legend

Multi-lingual text greatly reduces the likelihood of good responses.

0 Karma

renanprado96
Path Finder

How to create "presets" of months, for example:
January, February, March, April, etc ..
The months have to be fixed
Sorry..

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 ...