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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...