<?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: Writing a regular expression to capture null values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Writing-a-regular-expression-to-capture-null-values/m-p/361346#M164033</link>
    <description>&lt;P&gt;Do you want to find events like:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;fieldyoucareabout= otherfield1=value1 otherfield2=value2&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Or instead:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;otherfield1=value1 otherfield2=value2&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2018 19:09:02 GMT</pubDate>
    <dc:creator>micahkemp</dc:creator>
    <dc:date>2018-01-03T19:09:02Z</dc:date>
    <item>
      <title>Writing a regular expression to capture null values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Writing-a-regular-expression-to-capture-null-values/m-p/361343#M164030</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I've got fields which contain null values. I'm writing a regular expression to capture instances where fields contain null values. &lt;/P&gt;

&lt;P&gt;This is what I have, but it's not working. &lt;BR /&gt;
    ^(^.){0}$&lt;BR /&gt;
I'm trying to say in this expression, looking something that's empty. But as mentioned before, it's not working. I'm not too sure how null works in splunk.&lt;/P&gt;

&lt;P&gt;Could someone please help me with this?&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Mahbs&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 16:14:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Writing-a-regular-expression-to-capture-null-values/m-p/361343#M164030</guid>
      <dc:creator>mahbs</dc:creator>
      <dc:date>2018-01-03T16:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Writing a regular expression to capture null values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Writing-a-regular-expression-to-capture-null-values/m-p/361344#M164031</link>
      <description>&lt;P&gt;@mahbs, can you add sample events and also your current code using the code button &lt;CODE&gt;(101010)&lt;/CODE&gt; on Splunk Answers, so that special characters do not escape?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 16:25:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Writing-a-regular-expression-to-capture-null-values/m-p/361344#M164031</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-01-03T16:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Writing a regular expression to capture null values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Writing-a-regular-expression-to-capture-null-values/m-p/361345#M164032</link>
      <description>&lt;P&gt;Have you tried using &lt;CODE&gt;your base search | where isnull(fieldname)&lt;/CODE&gt; syntax rather than regular expressions? You can use this to find events with null values for any number of fields by chaining them like this: &lt;CODE&gt;your base search | where isnull(fieldname) OR isnull(field2name)...&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 18:53:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Writing-a-regular-expression-to-capture-null-values/m-p/361345#M164032</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-01-03T18:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Writing a regular expression to capture null values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Writing-a-regular-expression-to-capture-null-values/m-p/361346#M164033</link>
      <description>&lt;P&gt;Do you want to find events like:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;fieldyoucareabout= otherfield1=value1 otherfield2=value2&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Or instead:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;otherfield1=value1 otherfield2=value2&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 19:09:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Writing-a-regular-expression-to-capture-null-values/m-p/361346#M164033</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-01-03T19:09:02Z</dc:date>
    </item>
  </channel>
</rss>

