<?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: heterogenous sourcetype in log file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/heterogenous-sourcetype-in-log-file/m-p/228129#M96296</link>
    <description>&lt;P&gt;I don't think that there's a different way to override sourcetypes!&lt;BR /&gt;
maybe you could extract different fields using regex and use them, but it's less easy and you have to verify them in detail to not have wrong data.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2016 15:30:47 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2016-10-03T15:30:47Z</dc:date>
    <item>
      <title>heterogenous sourcetype in log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/heterogenous-sourcetype-in-log-file/m-p/228125#M96292</link>
      <description>&lt;P&gt;I have a log file that has multiple sourcetypes or entries defined by a different format.  Each entry in the log has a field that tells me&lt;BR /&gt;
the type of data (the fields) or format for that line (or event). For example: entries could be something like&lt;BR /&gt;
ABCD, aa, bb, cc, dd &lt;BR /&gt;
XYZ, 1, 2, 3, 4&lt;BR /&gt;
LMNOP, 1.45, 2.23, 3.89, 444, 5.67, 6.1&lt;BR /&gt;
GHIK,1, 2, 3, 4, 5, 6, 7, 8, 9&lt;BR /&gt;
What is the best way of defining a sourcetype for each entry and the field names (or its header) for them.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 14:27:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/heterogenous-sourcetype-in-log-file/m-p/228125#M96292</guid>
      <dc:creator>riotto</dc:creator>
      <dc:date>2016-10-03T14:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: heterogenous sourcetype in log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/heterogenous-sourcetype-in-log-file/m-p/228126#M96293</link>
      <description>&lt;P&gt;Could we have some real sample entries?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 14:53:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/heterogenous-sourcetype-in-log-file/m-p/228126#M96293</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-10-03T14:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: heterogenous sourcetype in log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/heterogenous-sourcetype-in-log-file/m-p/228127#M96294</link>
      <description>&lt;P&gt;You have to define a sourcetype to acquire your file (e.g.: original).&lt;BR /&gt;
after you have to configure a transformation for each kind of sourcetype finding a regular expression to identify events for each sourcetype.&lt;BR /&gt;
To do this, modify your props.conf&lt;BR /&gt;
[original]&lt;BR /&gt;
TRANSFORMS-sourcetype1 = sourcetype1&lt;BR /&gt;
TRANSFORMS-sourcetype2 = sourcetype2&lt;BR /&gt;
TRANSFORMS-sourcetype3 = sourcetype3&lt;/P&gt;

&lt;P&gt;After modify transforms.conf&lt;BR /&gt;
[sourcetype1]&lt;BR /&gt;
REGEX = myregex1&lt;BR /&gt;
FORMAT = sourcetype::newsourcetype1&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;/P&gt;

&lt;P&gt;[sourcetype2]&lt;BR /&gt;
REGEX = myregex2&lt;BR /&gt;
FORMAT = sourcetype::newsourcetype2&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;/P&gt;

&lt;P&gt;[sourcetype3]&lt;BR /&gt;
REGEX = myregex3&lt;BR /&gt;
FORMAT = sourcetype::newsourcetype3&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;/P&gt;

&lt;P&gt;In this way you override the original sourcetype value with the requested ones.&lt;/P&gt;

&lt;P&gt;You can find information at &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/Data/Advancedsourcetypeoverrides"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/Data/Advancedsourcetypeoverrides&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 15:06:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/heterogenous-sourcetype-in-log-file/m-p/228127#M96294</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-10-03T15:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: heterogenous sourcetype in log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/heterogenous-sourcetype-in-log-file/m-p/228128#M96295</link>
      <description>&lt;P&gt;I was trying to avoid the TRANSFORMS-class because Splunk says it's a big performance hit.  Is there a way to use the REPORT-class?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 15:23:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/heterogenous-sourcetype-in-log-file/m-p/228128#M96295</guid>
      <dc:creator>riotto</dc:creator>
      <dc:date>2016-10-03T15:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: heterogenous sourcetype in log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/heterogenous-sourcetype-in-log-file/m-p/228129#M96296</link>
      <description>&lt;P&gt;I don't think that there's a different way to override sourcetypes!&lt;BR /&gt;
maybe you could extract different fields using regex and use them, but it's less easy and you have to verify them in detail to not have wrong data.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 15:30:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/heterogenous-sourcetype-in-log-file/m-p/228129#M96296</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-10-03T15:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: heterogenous sourcetype in log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/heterogenous-sourcetype-in-log-file/m-p/228130#M96297</link>
      <description>&lt;P&gt;How does it know what the fields names are for each sourcetype? Is there something else I have to add to the transforms,conf?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 20:35:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/heterogenous-sourcetype-in-log-file/m-p/228130#M96297</guid>
      <dc:creator>riotto</dc:creator>
      <dc:date>2016-10-03T20:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: heterogenous sourcetype in log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/heterogenous-sourcetype-in-log-file/m-p/228131#M96298</link>
      <description>&lt;P&gt;Maybe the following can help -  &lt;A href="https://answers.splunk.com/answers/55620/sourcetype-best-practices.html"&gt;sourcetype best practices&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;@hexx says -&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1961i6B3A22F61C9D6CD4/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 21:41:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/heterogenous-sourcetype-in-log-file/m-p/228131#M96298</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-10-03T21:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: heterogenous sourcetype in log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/heterogenous-sourcetype-in-log-file/m-p/228132#M96299</link>
      <description>&lt;P&gt;When I search the data or trend a value in the SPLUNK indexer don't I need to give a field name to each  value?  This is where I am struggling.&lt;BR /&gt;
    Do I need a FIELDS = in the transform.conf  ?&lt;BR /&gt;
so that the event &lt;STRONG&gt;ABCD, aa, bb, cc, dd&lt;/STRONG&gt;  --- value aa has attribute name - Credit_Rating&lt;BR /&gt;&lt;BR /&gt;
value bb has attribute name - FICO.    ABCD in the event tells me the data is Credit data...I hope this make sense&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 21:58:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/heterogenous-sourcetype-in-log-file/m-p/228132#M96299</guid>
      <dc:creator>riotto</dc:creator>
      <dc:date>2016-10-03T21:58:59Z</dc:date>
    </item>
  </channel>
</rss>

