Splunk Enterprise

eval function

shreyasamin64
Explorer

need help on eval function of trimming the month 

EX : April = APR 

all months first 3 letters 

thanks 

 

Labels (1)
0 Karma
1 Solution

Gr0und_Z3r0
Contributor
| makeresults 
| eval months="January February March April May June July August September October November December" 
| makemv delim=" " months
| mvexpand months
| eval short-month=upper(substr(months,1,3))
| fields - _time

Gr0und_Z3r0_0-1638346164590.png

 

View solution in original post

0 Karma

Gr0und_Z3r0
Contributor
| makeresults 
| eval months="January February March April May June July August September October November December" 
| makemv delim=" " months
| mvexpand months
| eval short-month=upper(substr(months,1,3))
| fields - _time

Gr0und_Z3r0_0-1638346164590.png

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| eval month=substr(month,1,3)
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...