<?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 Splitting of sourcetype in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splitting-of-sourcetype/m-p/539998#M90420</link>
    <description>&lt;P&gt;Hello there&lt;/P&gt;&lt;P&gt;I am monitoring files using input.conf and define source source type there&lt;/P&gt;&lt;P&gt;i am trying to split sourcetype in to multiple sourcetype&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;inputs.conf&lt;/P&gt;&lt;P&gt;[monitor:///opt/splunk/etc/apps/out/bin/out/.../*.gz]&lt;BR /&gt;disabled=0&lt;BR /&gt;index=security_abc_index&lt;BR /&gt;sourcetype=abd_s3&lt;BR /&gt;source=abd&lt;BR /&gt;interval=60&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this props.conf&amp;nbsp; here i am doing&amp;nbsp; parsing&amp;nbsp;&lt;/P&gt;&lt;P&gt;[abd_s3]&lt;BR /&gt;LINE_BREAKER = ""{"&lt;BR /&gt;NO_BINARY_CHECK = 1&lt;BR /&gt;TRUNCATE = 0&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;TRANSFORMS-splitsourcetype = event1,&amp;nbsp; event2,&amp;nbsp;event3,&amp;nbsp;&amp;nbsp;event4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;TRANSFORMS.conf, event2, 3, 4 are having regex which i want to put in source type , everything else which is not matching to regex to event1&lt;/P&gt;&lt;P&gt;[event1]&lt;BR /&gt;DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;REGEX = .&lt;BR /&gt;FORMAT = sourcetype::event1&lt;/P&gt;&lt;P&gt;[event2]&lt;BR /&gt;DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;REGEX = \{\"AgentLoadFlags\".*&lt;BR /&gt;FORMAT = sourcetype::event2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[event3]&lt;BR /&gt;DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;REGEX = \{\"GatewayIP\".*&lt;BR /&gt;FORMAT = sourcetype::event3&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[event4]&lt;BR /&gt;DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;REGEX= \{\"ComputerName\".*&lt;BR /&gt;FORMAT = sourcetype::event4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output in index i am getting in to sourcetype event1&amp;nbsp; which not macthing to regex&lt;/P&gt;&lt;P&gt;which ever matched to regex not getting monitored not even index, am i doing anything wrong&lt;/P&gt;</description>
    <pubDate>Mon, 15 Feb 2021 17:18:35 GMT</pubDate>
    <dc:creator>rahulg</dc:creator>
    <dc:date>2021-02-15T17:18:35Z</dc:date>
    <item>
      <title>Splitting of sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splitting-of-sourcetype/m-p/539998#M90420</link>
      <description>&lt;P&gt;Hello there&lt;/P&gt;&lt;P&gt;I am monitoring files using input.conf and define source source type there&lt;/P&gt;&lt;P&gt;i am trying to split sourcetype in to multiple sourcetype&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;inputs.conf&lt;/P&gt;&lt;P&gt;[monitor:///opt/splunk/etc/apps/out/bin/out/.../*.gz]&lt;BR /&gt;disabled=0&lt;BR /&gt;index=security_abc_index&lt;BR /&gt;sourcetype=abd_s3&lt;BR /&gt;source=abd&lt;BR /&gt;interval=60&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this props.conf&amp;nbsp; here i am doing&amp;nbsp; parsing&amp;nbsp;&lt;/P&gt;&lt;P&gt;[abd_s3]&lt;BR /&gt;LINE_BREAKER = ""{"&lt;BR /&gt;NO_BINARY_CHECK = 1&lt;BR /&gt;TRUNCATE = 0&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;TRANSFORMS-splitsourcetype = event1,&amp;nbsp; event2,&amp;nbsp;event3,&amp;nbsp;&amp;nbsp;event4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;TRANSFORMS.conf, event2, 3, 4 are having regex which i want to put in source type , everything else which is not matching to regex to event1&lt;/P&gt;&lt;P&gt;[event1]&lt;BR /&gt;DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;REGEX = .&lt;BR /&gt;FORMAT = sourcetype::event1&lt;/P&gt;&lt;P&gt;[event2]&lt;BR /&gt;DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;REGEX = \{\"AgentLoadFlags\".*&lt;BR /&gt;FORMAT = sourcetype::event2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[event3]&lt;BR /&gt;DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;REGEX = \{\"GatewayIP\".*&lt;BR /&gt;FORMAT = sourcetype::event3&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[event4]&lt;BR /&gt;DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;REGEX= \{\"ComputerName\".*&lt;BR /&gt;FORMAT = sourcetype::event4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output in index i am getting in to sourcetype event1&amp;nbsp; which not macthing to regex&lt;/P&gt;&lt;P&gt;which ever matched to regex not getting monitored not even index, am i doing anything wrong&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 17:18:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splitting-of-sourcetype/m-p/539998#M90420</guid>
      <dc:creator>rahulg</dc:creator>
      <dc:date>2021-02-15T17:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting of sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splitting-of-sourcetype/m-p/540009#M90421</link>
      <description>&lt;P&gt;The regex in the [event1] transform matches everything.&amp;nbsp; That's why everything is in that sourcetype.&amp;nbsp; Try changing the order in the TRANSFORMS attribute.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TRANSFORMS-splitsourcetype = event2, event3, event4, event1&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Feb 2021 19:11:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splitting-of-sourcetype/m-p/540009#M90421</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-02-15T19:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting of sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splitting-of-sourcetype/m-p/540140#M90458</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 17:14:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splitting-of-sourcetype/m-p/540140#M90458</guid>
      <dc:creator>rahulg</dc:creator>
      <dc:date>2021-02-16T17:14:43Z</dc:date>
    </item>
  </channel>
</rss>

