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!

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, ...