Splunk Search

combine where and eval

pduvofmr
Path Finder

Hi Community,

how do i combine where and eval?
Available field are "Gear" and "Torque_Crankshaft"

Discribed in my human brain / language 😉

eval "Torque_Wheel" = (where ("Gear"=1 == ("Torque_Crankshaft"*5.0000)), ("Gear"=2 == ("Torque_Crankshaft"*3.2000")), ("Gear"=3 == ("Torque_Crankshaft"*2.1429)))

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Have you looked at the case function?

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Have you looked at the case function?

0 Karma

pduvofmr
Path Finder

Hi,

case works fine for me... thx

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...