<?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 create sourcetype for different type of files in a same folder in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-sourcetype-for-different-type-of-files-in-a-same/m-p/48088#M9099</link>
    <description>&lt;P&gt;Thanks yannk.yes sourcetypes applied to the correct files.Timestamp is same.But as u said events  are merged together.what is the issue and how to resolve it.&lt;/P&gt;

&lt;P&gt;I have reindexed that file many times by changing the sourcetypes alone.But no change iam getting events in same way getting like b4.&lt;/P&gt;</description>
    <pubDate>Fri, 11 May 2012 04:22:56 GMT</pubDate>
    <dc:creator>john</dc:creator>
    <dc:date>2012-05-11T04:22:56Z</dc:date>
    <item>
      <title>How to create sourcetype for different type of files in a same folder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-sourcetype-for-different-type-of-files-in-a-same/m-p/48086#M9097</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;

&lt;P&gt;Logs is the foldername which I am having two types of files which having same format of data.Since splunk not breaking lines on date I am using line breaking and its not working since its working fine in priview b4 indexing here is my props.cofig and input.cofig&lt;BR /&gt;
this is the content of file iam working on.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;18 Apr...........
&amp;lt;xml........&amp;gt;
&amp;lt;.......&amp;gt;

18 Apr..........
.........
...........
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Input.confg &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\newlogs\Logs\kllogs]
disabled = false
followTail = 0
crcSalt = &amp;lt;SOURCE&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Props&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::C:\\newlogs\\Logs\\*\\Server.log.*]
sourcetype=server
[server]
SHOULD_LINEMERGE=true
BREAK_ONLY_BEFORE_DATE=false
BREAK_ONLY_BEFORE=\d\d\s\w+\s
MAX_EVENTS=200000

[source::C:\\newlogs\\Logs\\*\\Database.log.*]
sourcetype=data
[data]
SHOULD_LINEMERGE=true
BREAK_ONLY_BEFORE_DATE=false
BREAK_ONLY_BEFORE=\d\d\s\w+\s
MAX_EVENTS=200000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have set soucetype as automatic while indexing files.Iam not able to find out what is the issue.Please help..&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2012 12:32:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-sourcetype-for-different-type-of-files-in-a-same/m-p/48086#M9097</guid>
      <dc:creator>john</dc:creator>
      <dc:date>2012-05-10T12:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create sourcetype for different type of files in a same folder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-sourcetype-for-different-type-of-files-in-a-same/m-p/48087#M9098</link>
      <description>&lt;P&gt;Few questions :&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;First, once indexes, are the sourcetypes data and server applied to the correct files ?&lt;/LI&gt;
&lt;LI&gt;Then if you search on a sample of the log on all time, do you find the event, are they merged together, or with a wrong timestamp ?&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 10 May 2012 13:58:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-sourcetype-for-different-type-of-files-in-a-same/m-p/48087#M9098</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-05-10T13:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to create sourcetype for different type of files in a same folder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-sourcetype-for-different-type-of-files-in-a-same/m-p/48088#M9099</link>
      <description>&lt;P&gt;Thanks yannk.yes sourcetypes applied to the correct files.Timestamp is same.But as u said events  are merged together.what is the issue and how to resolve it.&lt;/P&gt;

&lt;P&gt;I have reindexed that file many times by changing the sourcetypes alone.But no change iam getting events in same way getting like b4.&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2012 04:22:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-sourcetype-for-different-type-of-files-in-a-same/m-p/48088#M9099</guid>
      <dc:creator>john</dc:creator>
      <dc:date>2012-05-11T04:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create sourcetype for different type of files in a same folder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-sourcetype-for-different-type-of-files-in-a-same/m-p/48089#M9100</link>
      <description>&lt;P&gt;When i have indexed the files seperately in splunk then sourcetype is working.But for both files the automatic source type is not working splunk is taking some default source type not the source type that i have given like data and server.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2012 13:07:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-sourcetype-for-different-type-of-files-in-a-same/m-p/48089#M9100</guid>
      <dc:creator>john</dc:creator>
      <dc:date>2012-05-23T13:07:07Z</dc:date>
    </item>
  </channel>
</rss>

