<?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 Source type is not setup properly  and field extractions are not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Source-type-is-not-setup-properly-and-field-extractions-are-not/m-p/23598#M3718</link>
    <description>&lt;P&gt;I need to monitor/splunk multiple files in a directory  "/app/products/xxxx/yyy/logs/"&lt;/P&gt;

&lt;P&gt;This directory has files like aaa-queries.log.yyyymmdd AND aaa-engineInfo.log.yyyymmdd .&lt;/P&gt;

&lt;P&gt;The issue I have is thesefiles will stay unzipped for 3 days ..so today I will have following 3 files for onelog&lt;/P&gt;

&lt;P&gt;aaa-queries.log.20111128&lt;BR /&gt;
aaa-queries.log.20111127&lt;BR /&gt;
aaa-queries.log.20111126&lt;/P&gt;

&lt;P&gt;My inputs.conf and props.conf entries on app/ agent box are as follows &lt;/P&gt;

&lt;P&gt;[monitor:///app/products/xxx/yyy/logs/]&lt;/P&gt;

&lt;P&gt;index=xxxx&lt;/P&gt;

&lt;P&gt;disabled = false&lt;/P&gt;

&lt;P&gt;followTail = 1&lt;/P&gt;

&lt;P&gt;blacklist = .(gz|zip|bkz|arch|etc)$&lt;/P&gt;

&lt;P&gt;[root@ local]# more props.conf&lt;/P&gt;

&lt;P&gt;[source::.../aaa-queries.log.d+]&lt;/P&gt;

&lt;P&gt;sourcetype = queries_log&lt;/P&gt;

&lt;P&gt;[source::.../aaa-engineInfo.log.d+]&lt;/P&gt;

&lt;P&gt;sourcetype = engineInfo_log &lt;/P&gt;

&lt;P&gt;Becasue I get multiple logs i.e all 3 logs for each source as a part of my source regex ..My sourcetype is not  being set properly i.e Is shows as "suggestions-queries.log-too_small"  etc . I think because my sourcetype is not set properly I am not able to do field extractions on my search head servers . Is there a way to uniqely set sourcetype in this case . Zipping the old file / changing application is not a option as the logs are huge and other app components need those files to stay for 3 days .&lt;/P&gt;</description>
    <pubDate>Mon, 28 Nov 2011 21:47:38 GMT</pubDate>
    <dc:creator>desi-indian</dc:creator>
    <dc:date>2011-11-28T21:47:38Z</dc:date>
    <item>
      <title>Source type is not setup properly  and field extractions are not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Source-type-is-not-setup-properly-and-field-extractions-are-not/m-p/23598#M3718</link>
      <description>&lt;P&gt;I need to monitor/splunk multiple files in a directory  "/app/products/xxxx/yyy/logs/"&lt;/P&gt;

&lt;P&gt;This directory has files like aaa-queries.log.yyyymmdd AND aaa-engineInfo.log.yyyymmdd .&lt;/P&gt;

&lt;P&gt;The issue I have is thesefiles will stay unzipped for 3 days ..so today I will have following 3 files for onelog&lt;/P&gt;

&lt;P&gt;aaa-queries.log.20111128&lt;BR /&gt;
aaa-queries.log.20111127&lt;BR /&gt;
aaa-queries.log.20111126&lt;/P&gt;

&lt;P&gt;My inputs.conf and props.conf entries on app/ agent box are as follows &lt;/P&gt;

&lt;P&gt;[monitor:///app/products/xxx/yyy/logs/]&lt;/P&gt;

&lt;P&gt;index=xxxx&lt;/P&gt;

&lt;P&gt;disabled = false&lt;/P&gt;

&lt;P&gt;followTail = 1&lt;/P&gt;

&lt;P&gt;blacklist = .(gz|zip|bkz|arch|etc)$&lt;/P&gt;

&lt;P&gt;[root@ local]# more props.conf&lt;/P&gt;

&lt;P&gt;[source::.../aaa-queries.log.d+]&lt;/P&gt;

&lt;P&gt;sourcetype = queries_log&lt;/P&gt;

&lt;P&gt;[source::.../aaa-engineInfo.log.d+]&lt;/P&gt;

&lt;P&gt;sourcetype = engineInfo_log &lt;/P&gt;

&lt;P&gt;Becasue I get multiple logs i.e all 3 logs for each source as a part of my source regex ..My sourcetype is not  being set properly i.e Is shows as "suggestions-queries.log-too_small"  etc . I think because my sourcetype is not set properly I am not able to do field extractions on my search head servers . Is there a way to uniqely set sourcetype in this case . Zipping the old file / changing application is not a option as the logs are huge and other app components need those files to stay for 3 days .&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2011 21:47:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Source-type-is-not-setup-properly-and-field-extractions-are-not/m-p/23598#M3718</guid>
      <dc:creator>desi-indian</dc:creator>
      <dc:date>2011-11-28T21:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Source type is not setup properly  and field extractions are not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Source-type-is-not-setup-properly-and-field-extractions-are-not/m-p/23599#M3719</link>
      <description>&lt;P&gt;I am wondering if the "d+" is causing the problem. What happens if you change the source stanza in the props.conf to the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::.../aaa-queries.log...]
sourcetype = queries_log

source::.../aaa-engineInfo.log...]
sourcetype = engineInfo_log
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Nov 2011 21:56:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Source-type-is-not-setup-properly-and-field-extractions-are-not/m-p/23599#M3719</guid>
      <dc:creator>tgow</dc:creator>
      <dc:date>2011-11-28T21:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Source type is not setup properly  and field extractions are not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Source-type-is-not-setup-properly-and-field-extractions-are-not/m-p/23600#M3720</link>
      <description>&lt;P&gt;Thank you ! that seems to work ..If you do not mind what is the trailing "..." doing ? I added d+ cos each log had a date at the end &lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2011 22:15:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Source-type-is-not-setup-properly-and-field-extractions-are-not/m-p/23600#M3720</guid>
      <dc:creator>desi-indian</dc:creator>
      <dc:date>2011-11-28T22:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Source type is not setup properly  and field extractions are not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Source-type-is-not-setup-properly-and-field-extractions-are-not/m-p/23601#M3721</link>
      <description>&lt;P&gt;The trailing "..." is a catchall that you can use your configuration files. Here are links to more information:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.2.4/Data/Specifyinputpathswithwildcards"&gt;http://docs.splunk.com/Documentation/Splunk/4.2.4/Data/Specifyinputpathswithwildcards&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.2.4/admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/4.2.4/admin/Propsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2011 22:21:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Source-type-is-not-setup-properly-and-field-extractions-are-not/m-p/23601#M3721</guid>
      <dc:creator>tgow</dc:creator>
      <dc:date>2011-11-28T22:21:38Z</dc:date>
    </item>
  </channel>
</rss>

