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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...