<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SA-cim_validator: Why is this eval expression producing message &amp;quot;found 1 unexpected values (?)&amp;quot; in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-cim-validator-Why-is-this-eval-expression-producing-message/m-p/270326#M31336</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;if((isnull(src) OR like(src,"?")), "unknown", src)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 30 May 2016 13:22:36 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2016-05-30T13:22:36Z</dc:date>
    <item>
      <title>SA-cim_validator: Why is this eval expression producing message "found 1 unexpected values (?)"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-cim-validator-Why-is-this-eval-expression-producing-message/m-p/270321#M31331</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Can anyone explain to me what the below syntax signifies? While validating data audit logs to CIM validator, one of the fields is saying 1 unexpected value: &lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1408iC0B9B1E1D3AEA53E/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;When I checked in Settings-&amp;gt;DataModels-&amp;gt;Authetication Object; I found the eval expresssion for src as below: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;if(isnull(src) OR src="","unknown",src)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What does the above syntax represent, and how can I eliminate the error found 1 unexpected values(?) to expected values.  &lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 05:55:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-cim-validator-Why-is-this-eval-expression-producing-message/m-p/270321#M31331</guid>
      <dc:creator>bagarwal</dc:creator>
      <dc:date>2016-05-26T05:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: SA-cim_validator: Why is this eval expression producing message "found 1 unexpected values (?)"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-cim-validator-Why-is-this-eval-expression-producing-message/m-p/270322#M31332</link>
      <description>&lt;P&gt;It is a silly way of ensuring that &lt;CODE&gt;src&lt;/CODE&gt; is non-null (has a value).   Try this instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;coalesce(src, "unknown")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 May 2016 21:55:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-cim-validator-Why-is-this-eval-expression-producing-message/m-p/270322#M31332</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-27T21:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: SA-cim_validator: Why is this eval expression producing message "found 1 unexpected values (?)"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-cim-validator-Why-is-this-eval-expression-producing-message/m-p/270323#M31333</link>
      <description>&lt;P&gt;Thanks!! However , I want to replace value of src = ? to unknown and for that I wrote the expression as like this: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;if(isnull(src) OR src="?","unknown",src)&lt;/CODE&gt; ; however it is taking the value but it replaces all other src values to unknown too.  e.g  if &lt;CODE&gt;src = 172.*.*.*&lt;/CODE&gt; any IP address; it also replaces to unknown. &lt;/P&gt;

&lt;P&gt;I tried with other way also ; but same result I am getting. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;if(isnull(src) OR src=="\?","unknown",src)
if(isnull(src) OR src=="?","unknown",src)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Basically, I want only value "?" should be replaced with unknown.  &lt;/P&gt;

&lt;P&gt;If anyone can tell, it would be really help. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 03:30:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-cim-validator-Why-is-this-eval-expression-producing-message/m-p/270323#M31333</guid>
      <dc:creator>bagarwal</dc:creator>
      <dc:date>2016-05-30T03:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: SA-cim_validator: Why is this eval expression producing message "found 1 unexpected values (?)"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-cim-validator-Why-is-this-eval-expression-producing-message/m-p/270324#M31334</link>
      <description>&lt;P&gt;Have you tried &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;if(isnull(src) OR src=='?',"unknown",src)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 May 2016 03:55:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-cim-validator-Why-is-this-eval-expression-producing-message/m-p/270324#M31334</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-05-30T03:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: SA-cim_validator: Why is this eval expression producing message "found 1 unexpected values (?)"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-cim-validator-Why-is-this-eval-expression-producing-message/m-p/270325#M31335</link>
      <description>&lt;P&gt;Thanks!!&lt;BR /&gt;
I have tried with the below combination : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;if(isnull(src) OR src=='?',"unknown",src)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The result is coming correct but  again replaces other values also as unknown.  Is it something it is considering '?' as regex value and if yes how we can nullify it and consider as the value of src.  &lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 04:03:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-cim-validator-Why-is-this-eval-expression-producing-message/m-p/270325#M31335</guid>
      <dc:creator>bagarwal</dc:creator>
      <dc:date>2016-05-30T04:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: SA-cim_validator: Why is this eval expression producing message "found 1 unexpected values (?)"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-cim-validator-Why-is-this-eval-expression-producing-message/m-p/270326#M31336</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;if((isnull(src) OR like(src,"?")), "unknown", src)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 May 2016 13:22:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-cim-validator-Why-is-this-eval-expression-producing-message/m-p/270326#M31336</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-30T13:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: SA-cim_validator: Why is this eval expression producing message "found 1 unexpected values (?)"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-cim-validator-Why-is-this-eval-expression-producing-message/m-p/270327#M31337</link>
      <description>&lt;P&gt;Thank You so much!! However ,  it is also not giving the desired result.&lt;BR /&gt;&lt;BR /&gt;
Is it something that the null value can only be replaced in raw data ? I am not sure though.  &lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 07:06:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-cim-validator-Why-is-this-eval-expression-producing-message/m-p/270327#M31337</guid>
      <dc:creator>bagarwal</dc:creator>
      <dc:date>2016-05-31T07:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: SA-cim_validator: Why is this eval expression producing message "found 1 unexpected values (?)"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-cim-validator-Why-is-this-eval-expression-producing-message/m-p/270328#M31338</link>
      <description>&lt;P&gt;This one should definitely do it.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 12:05:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-cim-validator-Why-is-this-eval-expression-producing-message/m-p/270328#M31338</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-31T12:05:02Z</dc:date>
    </item>
  </channel>
</rss>

