Getting Data In

Can you help me with the following AppInspect failure in props.conf?

shayhibah
Path Finder

Hi,

In my props.conf file I have a lot of EVAL functions.
Some of them have the same name. For example:

EVAL-src_name = if(isnull(src),s_name,src)
EVAL-src_name = if(isnull(src_ip),s_name,src_ip)
EVAL-dst_name = if(isnull(dst),d_name,dst)
EVAL-dst_name = if(isnull(dst_ip),d_name,dst_ip)

There is no option that the same log will be appropriate for 2 stanzas with the same name.

Since I have duplicates in EVAL names, I get a failure from AppInspect.

How can I deal with it while keeping the logic?

Thanks

0 Karma

HiroshiSatoh
Champion

How is the case statement?

EVAL-src_name=case(isnotnull(src), src, isnotnull(src_ip), src_ip,1==1,s_name)

0 Karma
Get Updates on the Splunk Community!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

  Ready to master Kubernetes and cloud monitoring like the pros?Join Splunk’s Growth Engineering team for an ...

Wrapping Up Cybersecurity Awareness Month

October might be wrapping up, but for Splunk Education, cybersecurity awareness never goes out of season. ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...