<?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: Input data from directory sourcetype changing in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Input-data-from-directory-sourcetype-changing/m-p/89355#M18539</link>
    <description>&lt;P&gt;There is a good solution for this documented on answers here:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/10154/sourcetype-would-increment"&gt;http://splunk-base.splunk.com/answers/10154/sourcetype-would-increment&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I would start with trying to implement a similar solution and see if it works for your situation. If it doesn't, let us know and we can try to offer additional information. &lt;/P&gt;</description>
    <pubDate>Mon, 12 Mar 2012 12:26:05 GMT</pubDate>
    <dc:creator>jbsplunk</dc:creator>
    <dc:date>2012-03-12T12:26:05Z</dc:date>
    <item>
      <title>Input data from directory sourcetype changing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-data-from-directory-sourcetype-changing/m-p/89354#M18538</link>
      <description>&lt;P&gt;Hello every one,&lt;/P&gt;

&lt;P&gt;I am a new user of the splunk.&lt;/P&gt;

&lt;P&gt;I have facing a problem that input the log file from directory.&lt;/P&gt;

&lt;P&gt;In that directoy every 15 mins a new log file will be generate.&lt;/P&gt;

&lt;P&gt;I use the Manager -&amp;gt; Data Input -&amp;gt; Files &amp;amp; directories to input file.&lt;/P&gt;

&lt;P&gt;suppose I define a new sourcetype "ABC" in the first of input.&lt;/P&gt;

&lt;P&gt;I found that every 15 mins the new files is generate and import in the splunk. A new sourcetype is create ABC-1 ...ABC-12....ABC-256.&lt;/P&gt;

&lt;P&gt;Is there anything I can do to prevent the sourcetype keep increase?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2012 09:46:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-data-from-directory-sourcetype-changing/m-p/89354#M18538</guid>
      <dc:creator>zitacheung</dc:creator>
      <dc:date>2012-03-12T09:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Input data from directory sourcetype changing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-data-from-directory-sourcetype-changing/m-p/89355#M18539</link>
      <description>&lt;P&gt;There is a good solution for this documented on answers here:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/10154/sourcetype-would-increment"&gt;http://splunk-base.splunk.com/answers/10154/sourcetype-would-increment&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I would start with trying to implement a similar solution and see if it works for your situation. If it doesn't, let us know and we can try to offer additional information. &lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2012 12:26:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-data-from-directory-sourcetype-changing/m-p/89355#M18539</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2012-03-12T12:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Input data from directory sourcetype changing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-data-from-directory-sourcetype-changing/m-p/89356#M18540</link>
      <description>&lt;P&gt;Thanks for helping me. I have try to modify the props.conf and the transforms.conf but I cannot fix it, &lt;BR /&gt;
the file i change locate at "C:\Program Files\Splunk\etc\system\local"&lt;BR /&gt;
the code I use is &lt;BR /&gt;
 &lt;CODE&gt;&lt;BR /&gt;
[source::C:\logfile*]&lt;BR /&gt;
TRANSFORMS-Bandwidth=fix_Bandwidth&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
[fix_Bandwidth]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
FORMAT = sourcetype::BandWidth&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype &lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But I still cannot get it.And in the link it mention I can tag the wrong sourcetype to the correct one. May I know where I can do it??&lt;BR /&gt;
Many Thanks.&lt;/P&gt;

&lt;P&gt;Zita&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:30:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-data-from-directory-sourcetype-changing/m-p/89356#M18540</guid>
      <dc:creator>zitacheung</dc:creator>
      <dc:date>2020-09-28T11:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Input data from directory sourcetype changing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-data-from-directory-sourcetype-changing/m-p/89357#M18541</link>
      <description>&lt;P&gt;Thanks I can make all the new input log file become the same sourcetype.&lt;BR /&gt;
But how can I change the sourcetype of log that already imported.&lt;BR /&gt;
And how can I remove the wrong sourcetype(ABC-1...ABC-300)?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2012 09:04:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-data-from-directory-sourcetype-changing/m-p/89357#M18541</guid>
      <dc:creator>zitacheung</dc:creator>
      <dc:date>2012-03-13T09:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Input data from directory sourcetype changing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-data-from-directory-sourcetype-changing/m-p/89358#M18542</link>
      <description>&lt;P&gt;You can't surgically delete data from Splunk. The data will be aged out via your retention policy, or you can clean all the data from the index in which these sourcetypes exist. But, after data has been indexed, you can't alter the metadata or delete specific records yourself.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2012 12:38:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-data-from-directory-sourcetype-changing/m-p/89358#M18542</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2012-03-13T12:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Input data from directory sourcetype changing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-data-from-directory-sourcetype-changing/m-p/89359#M18543</link>
      <description>&lt;P&gt;Thanks jbsplunk,&lt;BR /&gt;
I have one more question, is it normal that the number of wrong sorcetype keep increasing as more file be recognised&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2012 02:24:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-data-from-directory-sourcetype-changing/m-p/89359#M18543</guid>
      <dc:creator>zitacheung</dc:creator>
      <dc:date>2012-03-14T02:24:30Z</dc:date>
    </item>
  </channel>
</rss>

