<?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 How do you see events where a variable's value is null? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-see-events-where-a-variable-s-value-is-null/m-p/427491#M122402</link>
    <description>&lt;P&gt;I am trying to see the events that have null values for a variable called 'Issuer', but I can't seem to find a way to make this work.&lt;/P&gt;

&lt;P&gt;Here are examples of what I have tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where isnull(Issuer)
| search Issuer!="*"
| search Issuer!="A*" AND Issuer!="B*"... AND Issuer!="Z*"
| search NOT Issuer=*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Without any of these the variable is present in about 95% of the events, I know that from clicking on the field 'Issuer' on the left hand side of the search.&lt;/P&gt;

&lt;P&gt;All three of those lines return nothing when used on their own. &lt;/P&gt;

&lt;P&gt;One odd thing is that if I do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| search Issuer!="I*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It will say that the variable is in every event, but if I try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| search Issuer="I*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This also says the variable is in every event.&lt;/P&gt;

&lt;P&gt;I do not know why this is happening so if anyone has any suggestions as to how I should go about finding these null variables please let me know. Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jul 2018 18:38:20 GMT</pubDate>
    <dc:creator>pjdwyer</dc:creator>
    <dc:date>2018-07-05T18:38:20Z</dc:date>
    <item>
      <title>How do you see events where a variable's value is null?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-see-events-where-a-variable-s-value-is-null/m-p/427491#M122402</link>
      <description>&lt;P&gt;I am trying to see the events that have null values for a variable called 'Issuer', but I can't seem to find a way to make this work.&lt;/P&gt;

&lt;P&gt;Here are examples of what I have tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where isnull(Issuer)
| search Issuer!="*"
| search Issuer!="A*" AND Issuer!="B*"... AND Issuer!="Z*"
| search NOT Issuer=*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Without any of these the variable is present in about 95% of the events, I know that from clicking on the field 'Issuer' on the left hand side of the search.&lt;/P&gt;

&lt;P&gt;All three of those lines return nothing when used on their own. &lt;/P&gt;

&lt;P&gt;One odd thing is that if I do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| search Issuer!="I*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It will say that the variable is in every event, but if I try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| search Issuer="I*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This also says the variable is in every event.&lt;/P&gt;

&lt;P&gt;I do not know why this is happening so if anyone has any suggestions as to how I should go about finding these null variables please let me know. Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 18:38:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-see-events-where-a-variable-s-value-is-null/m-p/427491#M122402</guid>
      <dc:creator>pjdwyer</dc:creator>
      <dc:date>2018-07-05T18:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do you see events where a variable's value is null?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-see-events-where-a-variable-s-value-is-null/m-p/427492#M122403</link>
      <description>&lt;P&gt;Does this work? &lt;PRE&gt;| search NOT Issuer=*&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 19:01:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-see-events-where-a-variable-s-value-is-null/m-p/427492#M122403</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2018-07-05T19:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do you see events where a variable's value is null?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-see-events-where-a-variable-s-value-is-null/m-p/427493#M122404</link>
      <description>&lt;P&gt;No, I forgot to mention I tried that, sorry.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 19:04:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-see-events-where-a-variable-s-value-is-null/m-p/427493#M122404</guid>
      <dc:creator>pjdwyer</dc:creator>
      <dc:date>2018-07-05T19:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do you see events where a variable's value is null?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-see-events-where-a-variable-s-value-is-null/m-p/427494#M122405</link>
      <description>&lt;PRE&gt; | filnull value="NA" Issuer | search Issuer="NA" &lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Jul 2018 19:13:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-see-events-where-a-variable-s-value-is-null/m-p/427494#M122405</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2018-07-05T19:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do you see events where a variable's value is null?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-see-events-where-a-variable-s-value-is-null/m-p/427495#M122406</link>
      <description>&lt;P&gt;When you say null values, does your raw data have field values as literal &lt;CODE&gt;null&lt;/CODE&gt; OR just blank? Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search
| regex Issuer!=".+"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Jul 2018 19:18:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-see-events-where-a-variable-s-value-is-null/m-p/427495#M122406</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-07-05T19:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do you see events where a variable's value is null?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-see-events-where-a-variable-s-value-is-null/m-p/427496#M122407</link>
      <description>&lt;P&gt;That one was new, but it also returned nothing.&lt;BR /&gt;
I'm beginning to think Splunk is not treating the values as though they are null, but I don't know how to figure out how it is treating them.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 19:19:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-see-events-where-a-variable-s-value-is-null/m-p/427496#M122407</guid>
      <dc:creator>pjdwyer</dc:creator>
      <dc:date>2018-07-05T19:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do you see events where a variable's value is null?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-see-events-where-a-variable-s-value-is-null/m-p/427497#M122408</link>
      <description>&lt;P&gt;I don't know what the raw data for the field is when Splunk does not collect a value. I believe it is just blank though. The search you recommended brought up nothing. Thank you though.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 19:36:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-see-events-where-a-variable-s-value-is-null/m-p/427497#M122408</guid>
      <dc:creator>pjdwyer</dc:creator>
      <dc:date>2018-07-05T19:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do you see events where a variable's value is null?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-see-events-where-a-variable-s-value-is-null/m-p/427498#M122409</link>
      <description>&lt;P&gt;The problem had something to do with the rex command. This was my rex command:&lt;BR /&gt;
| rex field=_raw "Issuer=\"(?.+)\";File"&lt;/P&gt;

&lt;P&gt;Some of the variables around the Issuer variable just were not being caught, but when I changed it to this:&lt;BR /&gt;
| rex field=_raw "Issuer=(?.+);File"&lt;/P&gt;

&lt;P&gt;Everything gets caught. I believe this is a bug because I can have the '\"' on either side, but not both. I also tried using '\S' on both sides and that also does not capture everything. It also is not an issue with the string being captured because looking at the stats I can see that the number of individual Issuers caught does not change, but the number each individual one appears gets lowered slightly. &lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 19:55:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-see-events-where-a-variable-s-value-is-null/m-p/427498#M122409</guid>
      <dc:creator>pjdwyer</dc:creator>
      <dc:date>2018-07-05T19:55:53Z</dc:date>
    </item>
  </channel>
</rss>

