Splunk Search

I want to use wildcard in eval min command as I have large number of fields and I want a separate column with min values from each row.

nkankur
Path Finder

Like
Field1 Field2 .... Min_Value
112 125 .... 112
....

eval Min_Value=min(Field*)

but it is giving below error,
Error in 'eval' command: The expression is malformed. An unexpected character is reached at ')'.

even I tried the below command,

eval Min_Value=min(Field%)

but it is giving same error

Please help!

Tags (1)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

HI

Can you please check below link?? It is the same question asked by you.

https://answers.splunk.com/answers/587912/i-want-to-use-wildcard-in-eval-min-command-as-give.html

Happy Splunking

0 Karma

horsefez
Motivator

Hi,

you are not able to address fields in splunk using wildcards.
I'm not sure if it will work, but try out this one.

| eval Min_Value=min(<<fields>>)
0 Karma

nkankur
Path Finder

I am getting below error,

Error in 'eval' command: The expression is malformed. An unexpected character is reached at '<>)'.

0 Karma

horsefez
Motivator

Well then it is simply not possible

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...