<?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: Changing the sourcetype, not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-not-working/m-p/157294#M31883</link>
    <description>&lt;P&gt;Thanks for the well written response. It made it clear what I was trying to say in my brain.&lt;/P&gt;

&lt;P&gt;I started with a new index, as this data is new and I'm not doing anything with it yet. I set the sourcetype and index both for "iis". Just changing the sourcetype but leaving the old index wasn't working. Now that the sourcetype is correct, Splunk is extracting the fields beautifully. Thanks again!&lt;/P&gt;</description>
    <pubDate>Fri, 09 May 2014 20:22:47 GMT</pubDate>
    <dc:creator>jravida</dc:creator>
    <dc:date>2014-05-09T20:22:47Z</dc:date>
    <item>
      <title>Changing the sourcetype, not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-not-working/m-p/157290#M31879</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;

&lt;P&gt;I'm trying to figure out how to change the sourcetype of a log source I have started ingesting.&lt;/P&gt;

&lt;P&gt;I installed a universal forwarder on the remote server, and told it to watch a folder for logs and send them to the universal forwarder on my distributed deployment. I named the index and sourcetype to "weblogs". I could only see the data when I changed the inputs.conf on the *remote server to state that (unintuitive considering it was the remote server, but it worked).&lt;/P&gt;

&lt;P&gt;I wanted to change the sourcetype to "iis" instead of "weblogs" now that I have it ingesting and searching on that sourcetype. But when I change the sourcetype to "iis" on the remote server's inputs.conf, I don't get anything when I search on sourcetype=iis.&lt;/P&gt;

&lt;P&gt;Is there some conf file I am missing? Do I change it on the universal forwarder or index server?  Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2014 18:08:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-not-working/m-p/157290#M31879</guid>
      <dc:creator>jravida</dc:creator>
      <dc:date>2014-05-08T18:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the sourcetype, not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-not-working/m-p/157291#M31880</link>
      <description>&lt;P&gt;Did you create a configuration for iis sourcetype in props.conf (your must have a stanza for weblogs, you can rename it to iis, update inputs.conf and restart)&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2014 18:53:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-not-working/m-p/157291#M31880</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-08T18:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the sourcetype, not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-not-working/m-p/157292#M31881</link>
      <description>&lt;P&gt;I did this on the remote server's inputs.conf. I set it for index and sourcetype=weblogs. But when I change the sourcetype to "iis", and leave the index as weblogs, and restart the forwarder, I get no logs.&lt;/P&gt;

&lt;P&gt;Which server's props.conf needs to be changed?&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2014 19:23:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-not-working/m-p/157292#M31881</guid>
      <dc:creator>jravida</dc:creator>
      <dc:date>2014-05-08T19:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the sourcetype, not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-not-working/m-p/157293#M31882</link>
      <description>&lt;P&gt;So your configuration is (UF = universal forwarder)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;remote system UF -&amp;gt; distributed deployment UF -&amp;gt; indexer
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And on the remote system, you have an &lt;CODE&gt;inputs.conf&lt;/CODE&gt; that looks like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///pathtologs]
index=weblogs
sourcetype=weblogs
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I assume that you also have an &lt;CODE&gt;outputs.conf&lt;/CODE&gt; that directs the remote system to forward to the distributed deployment UF. And on the distributed deployment UF, you have an &lt;CODE&gt;inputs.conf&lt;/CODE&gt; that listens for the data from the remote system and &lt;CODE&gt;outputs.conf&lt;/CODE&gt; that sends to the indexer. None of these config files need to say anything about the index or sourcetype. And you do &lt;EM&gt;not&lt;/EM&gt; need a &lt;CODE&gt;props.conf&lt;/CODE&gt; on any of the forwarders to collect the data.&lt;/P&gt;

&lt;P&gt;However, on the indexer, you must have an &lt;CODE&gt;indexes.conf&lt;/CODE&gt; that defines the weblogs index. (And of course an &lt;CODE&gt;inputs.conf&lt;/CODE&gt; that listens for the forwarded data.)&lt;/P&gt;

&lt;P&gt;IF you want to change the sourcetype on the remote system, you need to think about these things:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;What about the data that is already indexed? Changing the sourcetype on the remote UF will &lt;EM&gt;not&lt;/EM&gt; change anything in the data that is already indexed.&lt;/LI&gt;
&lt;LI&gt;What index should the new data go to? If you simply change the sourcetype, the data will continue to go to the &lt;CODE&gt;weblogs&lt;/CODE&gt; index. So you will need to search &lt;CODE&gt;index=weblogs&lt;/CODE&gt; to find it. If you want to create a new index (iis?) for the data, you must define the new index &lt;STRONG&gt;first&lt;/STRONG&gt;, then change the &lt;CODE&gt;inputs.conf&lt;/CODE&gt; on the remote UF.&lt;/LI&gt;
&lt;LI&gt;You could do a "sourcetype rename" to change the sourcetype from &lt;CODE&gt;weblogs&lt;/CODE&gt; to &lt;CODE&gt;iis&lt;/CODE&gt; for the data that has already been indexed. You would do this on the indexer.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 08 May 2014 21:14:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-not-working/m-p/157293#M31882</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-05-08T21:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the sourcetype, not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-not-working/m-p/157294#M31883</link>
      <description>&lt;P&gt;Thanks for the well written response. It made it clear what I was trying to say in my brain.&lt;/P&gt;

&lt;P&gt;I started with a new index, as this data is new and I'm not doing anything with it yet. I set the sourcetype and index both for "iis". Just changing the sourcetype but leaving the old index wasn't working. Now that the sourcetype is correct, Splunk is extracting the fields beautifully. Thanks again!&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2014 20:22:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-not-working/m-p/157294#M31883</guid>
      <dc:creator>jravida</dc:creator>
      <dc:date>2014-05-09T20:22:47Z</dc:date>
    </item>
  </channel>
</rss>

