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

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

Well then it is simply not possible

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...