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!

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