<?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: How to split data into separate sourcetypes with transforms in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-data-into-separate-sourcetypes-with-transforms/m-p/549306#M91263</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163730"&gt;@venkatasri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes correct this is not an index time extraction .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This method works using regex, but unable to with a lookuptable.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Apr 2021 08:03:24 GMT</pubDate>
    <dc:creator>the_rains</dc:creator>
    <dc:date>2021-04-26T08:03:24Z</dc:date>
    <item>
      <title>How to split data into separate sourcetypes with transforms</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-data-into-separate-sourcetypes-with-transforms/m-p/549129#M91251</link>
      <description>&lt;P&gt;I am trying to split some data into difference source types using a lookup table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am testing this locally.&lt;/P&gt;&lt;P&gt;I have a source type called&lt;STRONG&gt; A&lt;/STRONG&gt; and wish to extract fields to source type&lt;STRONG&gt; B&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A snippet of my data is below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;4/23/21
11:30:29.000 AM	
23 Fri Apr 23 2021 11:30:29 www1 sshd[4878]: Failed password for invalid user SAMPLE123:ABC11:snmp from 10.0.0.1 port 3118 ssh

    host = 192.168.1.1
    source = /A.log
    sourcetype = A&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;[a]
DATETIME_CONFIG = 
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = true
category = Custom
pulldown_type = 1
LOOKUP-alookup = lookuptable snmp_trap AS host OUTPUT host AS host_output
TRANSFORMS-changesourcetype = B&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Transforms.conf&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[lookuptable]
batch_index_query = 0
case_sensitive_match = 0
filename = lookuptable.csv
max_matches = 1
min_matches = 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;host	snmp_poll	syslog	snmp_trap
10.0.01	SAMPLE123:ABC11:ipfix	SAMPLE123:ABC11:snmp_trap SAMPLE123:ABC11:syslog&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have achieved similar in the past using Regex to separate source type but having issues doing this via a lookup table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 14:18:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-data-into-separate-sourcetypes-with-transforms/m-p/549129#M91251</guid>
      <dc:creator>the_rains</dc:creator>
      <dc:date>2021-04-23T14:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to split data into separate sourcetypes with transforms</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-data-into-separate-sourcetypes-with-transforms/m-p/549293#M91260</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233605"&gt;@the_rains&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lookups are only used during search-time on search head component, what you are trying to achieve before indexing at HF layer. Try using regex and other method which you can think of.&lt;/P&gt;&lt;P&gt;-----------------------------------------------------&lt;/P&gt;&lt;P&gt;An upvote would be appreciated if it helps!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 03:07:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-data-into-separate-sourcetypes-with-transforms/m-p/549293#M91260</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-04-26T03:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to split data into separate sourcetypes with transforms</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-data-into-separate-sourcetypes-with-transforms/m-p/549306#M91263</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163730"&gt;@venkatasri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes correct this is not an index time extraction .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This method works using regex, but unable to with a lookuptable.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 08:03:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-data-into-separate-sourcetypes-with-transforms/m-p/549306#M91263</guid>
      <dc:creator>the_rains</dc:creator>
      <dc:date>2021-04-26T08:03:24Z</dc:date>
    </item>
  </channel>
</rss>

