<?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 issue while filtering required events in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-solve-setnull-issue-while-filtering-required-events/m-p/626557#M107626</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161725"&gt;@roopeshetty&lt;/a&gt;&amp;nbsp; There is a typo in your props.conf. The stanza setparsing does not exist.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[sls_sourcetype]
TRANSFORMS-set=setnull,setqueue&lt;/LI-CODE&gt;&lt;P&gt;and rewrite your setnull stanza&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[setnull]
SOURCE_KEY=_raw
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue&lt;/LI-CODE&gt;&lt;P&gt;If it still does not work verify your regex with&amp;nbsp;&lt;A href="https://regex101.com/" target="_blank"&gt;regex101: build, test, and debug regex.&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2023 10:09:44 GMT</pubDate>
    <dc:creator>PaulPanther</dc:creator>
    <dc:date>2023-01-10T10:09:44Z</dc:date>
    <item>
      <title>How to solve setnull issue while filtering required events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-solve-setnull-issue-while-filtering-required-events/m-p/626503#M107621</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are getting lot of events into our Splunk which is filling up the our computer disk storage rapidly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Our search query is “&lt;STRONG&gt;index="cloud" sourcetype=sls_sourcetype”&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Upon investigating we decided that we need to capture only below events;&lt;/P&gt;
&lt;P&gt;Collect only below events Where field name “&lt;STRONG&gt;sql&lt;/STRONG&gt;” contains below 4 values ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;logout!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;login success!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;login failed!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;create&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually field name “&lt;STRONG&gt;sql&lt;/STRONG&gt;” contains more than 100 values so we need to exclude all of them and capture only those events which has mentioned above 4 values.&lt;/P&gt;
&lt;P&gt;We tried below configurations in transforms.conf and props.conf files but none of them are giving desired results. Can some please help us with the correct settings as this is the first time we are working transforms.conf and props.conf settings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt; &amp;nbsp;as below;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[setnull]&lt;/P&gt;
&lt;P&gt;SOURCE_KEY=_raw&lt;/P&gt;
&lt;P&gt;REGEX = *&lt;/P&gt;
&lt;P&gt;DEST_KEY = queue&lt;/P&gt;
&lt;P&gt;FORMAT = nullQueue&lt;/P&gt;
&lt;P&gt;[setqueue]&lt;/P&gt;
&lt;P&gt;SOURCE_KEY=_raw&lt;/P&gt;
&lt;P&gt;REGEX = sql=log(out! |in success! |in failure!)&lt;/P&gt;
&lt;P&gt;DEST_KEY = queue&lt;/P&gt;
&lt;P&gt;FORMAT = indexQueue&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Props.conf&lt;/STRONG&gt; as below;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[sourcetype::sls_sourcetype]&lt;/P&gt;
&lt;P&gt;TRANSFORMS-set= setnull,setparsing&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 16:58:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-solve-setnull-issue-while-filtering-required-events/m-p/626503#M107621</guid>
      <dc:creator>roopeshetty</dc:creator>
      <dc:date>2023-01-11T16:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: setnull issue while filtering required events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-solve-setnull-issue-while-filtering-required-events/m-p/626557#M107626</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161725"&gt;@roopeshetty&lt;/a&gt;&amp;nbsp; There is a typo in your props.conf. The stanza setparsing does not exist.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[sls_sourcetype]
TRANSFORMS-set=setnull,setqueue&lt;/LI-CODE&gt;&lt;P&gt;and rewrite your setnull stanza&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[setnull]
SOURCE_KEY=_raw
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue&lt;/LI-CODE&gt;&lt;P&gt;If it still does not work verify your regex with&amp;nbsp;&lt;A href="https://regex101.com/" target="_blank"&gt;regex101: build, test, and debug regex.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 10:09:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-solve-setnull-issue-while-filtering-required-events/m-p/626557#M107626</guid>
      <dc:creator>PaulPanther</dc:creator>
      <dc:date>2023-01-10T10:09:44Z</dc:date>
    </item>
  </channel>
</rss>

