<?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 Using setnull and setparsing for two different sourcetypes in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Using-setnull-and-setparsing-for-two-different-sourcetypes/m-p/404738#M71834</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;

&lt;P&gt;We have following props.conf&lt;/P&gt;

&lt;P&gt;[&lt;STRONG&gt;sourcetypeA&lt;/STRONG&gt;]&lt;BR /&gt;
KV_MODE = json&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3Q%Z&lt;BR /&gt;
TRUNCATE = 0&lt;BR /&gt;
LINE_BREAKER = ([\n\r]+){&lt;BR /&gt;
TIME_PREFIX = (\"timestamp\"[^\"]+\")&lt;BR /&gt;
TRANSFORMS-set = &lt;STRONG&gt;setnull,setparsing&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;and transforms.conf:&lt;/P&gt;

&lt;P&gt;[&lt;STRONG&gt;setnull&lt;/STRONG&gt;]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[&lt;STRONG&gt;setparsing&lt;/STRONG&gt;]&lt;BR /&gt;
REGEX = Regex1&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;Using this configuration we are getting filtered data in splunk and it is working as expected.&lt;/P&gt;

&lt;P&gt;No we have a requirement where we want to apply similar settings to another sourcetype say sourcetypeB with having different regex for [setparsing].&lt;/P&gt;

&lt;P&gt;I have updated the props.conf as &lt;/P&gt;

&lt;P&gt;[&lt;STRONG&gt;sourcetypeA&lt;/STRONG&gt;]&lt;BR /&gt;
KV_MODE = json&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3Q%Z&lt;BR /&gt;
TRUNCATE = 0&lt;BR /&gt;
LINE_BREAKER = ([\n\r]+){&lt;BR /&gt;
TIME_PREFIX = (\"timestamp\"[^\"]+\")&lt;BR /&gt;
TRANSFORMS-set = &lt;STRONG&gt;setnull&lt;/STRONG&gt;,&lt;STRONG&gt;setparsing&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[&lt;STRONG&gt;sourcetypeB&lt;/STRONG&gt;]&lt;BR /&gt;
KV_MODE = json&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3Q%Z&lt;BR /&gt;
TRUNCATE = 0&lt;BR /&gt;
LINE_BREAKER = ([\n\r]+){&lt;BR /&gt;
TIME_PREFIX = (\"timestamp\"[^\"]+\")&lt;BR /&gt;
TRANSFORMS-set = &lt;STRONG&gt;setnull&lt;/STRONG&gt;,&lt;STRONG&gt;setparsing1&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Transforms.conf has been modified as:&lt;/P&gt;

&lt;P&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 = &lt;STRONG&gt;Regex1&lt;/STRONG&gt;&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;[setparsing1]&lt;BR /&gt;
REGEX = &lt;STRONG&gt;Regex2&lt;/STRONG&gt;&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;After applying these setting I see data only getting indexed for SourcetypeB and no data for SourcetypeA.&lt;/P&gt;

&lt;P&gt;Could anyone please help what do i need to change to get data for both sourcetypes A and B. I have tried multiple combinations but only getting data for one sourcetype at one time&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Inderjot&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:04:32 GMT</pubDate>
    <dc:creator>inderjot_rasila</dc:creator>
    <dc:date>2020-09-30T00:04:32Z</dc:date>
    <item>
      <title>Using setnull and setparsing for two different sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-setnull-and-setparsing-for-two-different-sourcetypes/m-p/404738#M71834</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;

&lt;P&gt;We have following props.conf&lt;/P&gt;

&lt;P&gt;[&lt;STRONG&gt;sourcetypeA&lt;/STRONG&gt;]&lt;BR /&gt;
KV_MODE = json&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3Q%Z&lt;BR /&gt;
TRUNCATE = 0&lt;BR /&gt;
LINE_BREAKER = ([\n\r]+){&lt;BR /&gt;
TIME_PREFIX = (\"timestamp\"[^\"]+\")&lt;BR /&gt;
TRANSFORMS-set = &lt;STRONG&gt;setnull,setparsing&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;and transforms.conf:&lt;/P&gt;

&lt;P&gt;[&lt;STRONG&gt;setnull&lt;/STRONG&gt;]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[&lt;STRONG&gt;setparsing&lt;/STRONG&gt;]&lt;BR /&gt;
REGEX = Regex1&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;Using this configuration we are getting filtered data in splunk and it is working as expected.&lt;/P&gt;

&lt;P&gt;No we have a requirement where we want to apply similar settings to another sourcetype say sourcetypeB with having different regex for [setparsing].&lt;/P&gt;

&lt;P&gt;I have updated the props.conf as &lt;/P&gt;

&lt;P&gt;[&lt;STRONG&gt;sourcetypeA&lt;/STRONG&gt;]&lt;BR /&gt;
KV_MODE = json&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3Q%Z&lt;BR /&gt;
TRUNCATE = 0&lt;BR /&gt;
LINE_BREAKER = ([\n\r]+){&lt;BR /&gt;
TIME_PREFIX = (\"timestamp\"[^\"]+\")&lt;BR /&gt;
TRANSFORMS-set = &lt;STRONG&gt;setnull&lt;/STRONG&gt;,&lt;STRONG&gt;setparsing&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[&lt;STRONG&gt;sourcetypeB&lt;/STRONG&gt;]&lt;BR /&gt;
KV_MODE = json&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3Q%Z&lt;BR /&gt;
TRUNCATE = 0&lt;BR /&gt;
LINE_BREAKER = ([\n\r]+){&lt;BR /&gt;
TIME_PREFIX = (\"timestamp\"[^\"]+\")&lt;BR /&gt;
TRANSFORMS-set = &lt;STRONG&gt;setnull&lt;/STRONG&gt;,&lt;STRONG&gt;setparsing1&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Transforms.conf has been modified as:&lt;/P&gt;

&lt;P&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 = &lt;STRONG&gt;Regex1&lt;/STRONG&gt;&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;[setparsing1]&lt;BR /&gt;
REGEX = &lt;STRONG&gt;Regex2&lt;/STRONG&gt;&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;After applying these setting I see data only getting indexed for SourcetypeB and no data for SourcetypeA.&lt;/P&gt;

&lt;P&gt;Could anyone please help what do i need to change to get data for both sourcetypes A and B. I have tried multiple combinations but only getting data for one sourcetype at one time&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Inderjot&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:04:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-setnull-and-setparsing-for-two-different-sourcetypes/m-p/404738#M71834</guid>
      <dc:creator>inderjot_rasila</dc:creator>
      <dc:date>2020-09-30T00:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using setnull and setparsing for two different sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-setnull-and-setparsing-for-two-different-sourcetypes/m-p/404739#M71835</link>
      <description>&lt;P&gt;The only thing that makes sense is that your &lt;CODE&gt;Rregex1&lt;/CODE&gt; is incorrect and never matches.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 00:09:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-setnull-and-setparsing-for-two-different-sourcetypes/m-p/404739#M71835</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-11T00:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using setnull and setparsing for two different sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-setnull-and-setparsing-for-two-different-sourcetypes/m-p/404740#M71836</link>
      <description>&lt;P&gt;Regex1 is just a sample here we have actual application name which matches but only data from one sourcetype gets ingested at once&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 17:21:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-setnull-and-setparsing-for-two-different-sourcetypes/m-p/404740#M71836</guid>
      <dc:creator>inderjot_rasila</dc:creator>
      <dc:date>2019-04-11T17:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using setnull and setparsing for two different sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-setnull-and-setparsing-for-two-different-sourcetypes/m-p/404741#M71837</link>
      <description>&lt;P&gt;The only thing I can think to try would be to have two totally different, yet exactly the same  &lt;CODE&gt;'setnull'&lt;/CODE&gt; stanzas in transforms.conf &amp;gt;  &lt;CODE&gt;setnullA&lt;/CODE&gt; for  &lt;CODE&gt;sourcetypeA&lt;/CODE&gt; and  &lt;CODE&gt;setnullB&lt;/CODE&gt; for  &lt;CODE&gt;sourcetypeB&lt;/CODE&gt; each with their own  &lt;CODE&gt;'setparsing'&lt;/CODE&gt; as you have done already.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 19:40:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-setnull-and-setparsing-for-two-different-sourcetypes/m-p/404741#M71837</guid>
      <dc:creator>gurlest</dc:creator>
      <dc:date>2019-05-30T19:40:44Z</dc:date>
    </item>
  </channel>
</rss>

