<?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: Setnull and Setparsing in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Setnull-and-Setparsing/m-p/471155#M80997</link>
    <description>&lt;P&gt;@to4kawa - Exactly I did the same thing as well. &lt;/P&gt;

&lt;P&gt;REGEX works fine in SETNULL but not in SETPARSING. &lt;BR /&gt;
[setnull]&lt;BR /&gt;
REGEX= .&lt;BR /&gt;
DEST_KEY=queue&lt;BR /&gt;
FORMAT=nullQueue&lt;/P&gt;

&lt;P&gt;[setparsing]&lt;BR /&gt;
REGEX=yahoo.com&lt;BR /&gt;
DEST_KEY=queue&lt;BR /&gt;
FORMAT=indexQueue&lt;/P&gt;

&lt;P&gt;If I put REGEX of SETPARSING in SETNULL , it works well - which indicates its not a REGEX issue too. &lt;/P&gt;

&lt;P&gt;Any other insight ?&lt;/P&gt;</description>
    <pubDate>Mon, 13 Apr 2020 12:12:50 GMT</pubDate>
    <dc:creator>rashi83</dc:creator>
    <dc:date>2020-04-13T12:12:50Z</dc:date>
    <item>
      <title>Setnull and Setparsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setnull-and-Setparsing/m-p/471152#M80994</link>
      <description>&lt;P&gt;I am using SETNULL and SETPARSING to include and exclude log events. Here is the files - &lt;/P&gt;

&lt;P&gt;Props.conf&lt;BR /&gt;
[OktaIM2:log]&lt;BR /&gt;
TRANSFORMS-set= setnull,setparsing&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[setnull]&lt;BR /&gt;
REGEX=gmail.com&lt;BR /&gt;
DEST_KEY=queue&lt;BR /&gt;
FORMAT=nullQueue&lt;/P&gt;

&lt;P&gt;[setparsing]&lt;BR /&gt;
REGEX=yahoo.com&lt;BR /&gt;
DEST_KEY=queue&lt;BR /&gt;
FORMAT=indexQueue&lt;/P&gt;

&lt;P&gt;SETNULL filter works well, but not SETPARSING one. I tried following - &lt;/P&gt;

&lt;P&gt;1) changed order to setparsing,setnull in props.conf&lt;BR /&gt;
restarted splunk after making changes&lt;/P&gt;

&lt;P&gt;Any insights why INCLUDE filter is not working as expected ?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 20:01:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setnull-and-Setparsing/m-p/471152#M80994</guid>
      <dc:creator>rashi83</dc:creator>
      <dc:date>2020-04-10T20:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setnull and Setparsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setnull-and-Setparsing/m-p/471153#M80995</link>
      <description>&lt;P&gt;Okay, so you are creating a field called &lt;CODE&gt;queue&lt;/CODE&gt; that contains either the value &lt;CODE&gt;nullQueue&lt;/CODE&gt;, the value &lt;CODE&gt;indexQueue&lt;/CODE&gt;, or no value at all.&lt;/P&gt;

&lt;P&gt;First, if any part of the record matches the REGEX &lt;CODE&gt;gmail.com&lt;/CODE&gt; (for instance &lt;CODE&gt;gmailxcom&lt;/CODE&gt; and &lt;CODE&gt;gmail.com&lt;/CODE&gt; match that regex) then the field will be assigned the value &lt;CODE&gt;nullQueue&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Then, if any part of the record matches the REGEX &lt;CODE&gt;yahoo.com&lt;/CODE&gt; (for instance &lt;CODE&gt;yahoo9com&lt;/CODE&gt; and &lt;CODE&gt;yahoo.com&lt;/CODE&gt; match that regex) then the field will be assigned or changed to the value &lt;CODE&gt;indexQueue&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;If no part matches either, then the field &lt;CODE&gt;queue&lt;/CODE&gt; will not be created.&lt;/P&gt;

&lt;P&gt;So, when you say it is not working, are you saying that events which have the value &lt;CODE&gt;yahoo.com&lt;/CODE&gt; in them are not being assigned a value for &lt;CODE&gt;queue&lt;/CODE&gt;? &lt;/P&gt;

&lt;P&gt;And where and when are you validating that?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 21:36:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setnull-and-Setparsing/m-p/471153#M80995</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2020-04-10T21:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Setnull and Setparsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setnull-and-Setparsing/m-p/471154#M80996</link>
      <description>&lt;P&gt;see&lt;BR /&gt;
&lt;A href="https://www.coursehero.com/file/p7nhp2hf/When-you-set-the-setnull-transform-first-it-matches-all-events-and-tags-them-to/"&gt;https://www.coursehero.com/file/p7nhp2hf/When-you-set-the-setnull-transform-first-it-matches-all-events-and-tags-them-to/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 21:38:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setnull-and-Setparsing/m-p/471154#M80996</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-10T21:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Setnull and Setparsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setnull-and-Setparsing/m-p/471155#M80997</link>
      <description>&lt;P&gt;@to4kawa - Exactly I did the same thing as well. &lt;/P&gt;

&lt;P&gt;REGEX works fine in SETNULL but not in SETPARSING. &lt;BR /&gt;
[setnull]&lt;BR /&gt;
REGEX= .&lt;BR /&gt;
DEST_KEY=queue&lt;BR /&gt;
FORMAT=nullQueue&lt;/P&gt;

&lt;P&gt;[setparsing]&lt;BR /&gt;
REGEX=yahoo.com&lt;BR /&gt;
DEST_KEY=queue&lt;BR /&gt;
FORMAT=indexQueue&lt;/P&gt;

&lt;P&gt;If I put REGEX of SETPARSING in SETNULL , it works well - which indicates its not a REGEX issue too. &lt;/P&gt;

&lt;P&gt;Any other insight ?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 12:12:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setnull-and-Setparsing/m-p/471155#M80997</guid>
      <dc:creator>rashi83</dc:creator>
      <dc:date>2020-04-13T12:12:50Z</dc:date>
    </item>
  </channel>
</rss>

