<?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 change syslog host to a specific sourcetype? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-syslog-host-to-a-specific-sourcetype/m-p/202854#M40098</link>
    <description>&lt;P&gt;I don't recommend trying to change sourcetype after the event has been received. The best way would be to create a separate stanza for the host in question, either by giving it a different port, or specifying the host in a copy of the existing:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[udp://514]
sourcetype = genpop

[udp://specialhost:514]
sourcetype = special
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[udp://514]
sourcetype = genpop

[udp://5114]
sourcetype = special_type
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 02 Aug 2016 16:35:25 GMT</pubDate>
    <dc:creator>twinspop</dc:creator>
    <dc:date>2016-08-02T16:35:25Z</dc:date>
    <item>
      <title>How to change syslog host to a specific sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-syslog-host-to-a-specific-sourcetype/m-p/202853#M40097</link>
      <description>&lt;P&gt;I'm getting syslog from a specific host in Splunk.  How do I create a sourcetype for that host?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 16:06:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-syslog-host-to-a-specific-sourcetype/m-p/202853#M40097</guid>
      <dc:creator>mrtolu6</dc:creator>
      <dc:date>2016-08-02T16:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to change syslog host to a specific sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-syslog-host-to-a-specific-sourcetype/m-p/202854#M40098</link>
      <description>&lt;P&gt;I don't recommend trying to change sourcetype after the event has been received. The best way would be to create a separate stanza for the host in question, either by giving it a different port, or specifying the host in a copy of the existing:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[udp://514]
sourcetype = genpop

[udp://specialhost:514]
sourcetype = special
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[udp://514]
sourcetype = genpop

[udp://5114]
sourcetype = special_type
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Aug 2016 16:35:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-syslog-host-to-a-specific-sourcetype/m-p/202854#M40098</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-08-02T16:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to change syslog host to a specific sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-syslog-host-to-a-specific-sourcetype/m-p/202855#M40099</link>
      <description>&lt;P&gt;I second the above approach, but if this is not possible for you to do; here is an example how to re-write the sourcetype based on the hostname &lt;A href="https://answers.splunk.com/answers/369375/how-do-i-set-different-source-types-on-one-data-in-1.html"&gt;https://answers.splunk.com/answers/369375/how-do-i-set-different-source-types-on-one-data-in-1.html&lt;/A&gt; this example uses a TCP input but applies to syslog over UDP as well &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 04:01:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-syslog-host-to-a-specific-sourcetype/m-p/202855#M40099</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-08-03T04:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to change syslog host to a specific sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-syslog-host-to-a-specific-sourcetype/m-p/202856#M40100</link>
      <description>&lt;P&gt;Twinspop,&lt;/P&gt;

&lt;P&gt;Which file do i create the stanza in?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 15:36:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-syslog-host-to-a-specific-sourcetype/m-p/202856#M40100</guid>
      <dc:creator>mrtolu6</dc:creator>
      <dc:date>2016-08-03T15:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to change syslog host to a specific sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-syslog-host-to-a-specific-sourcetype/m-p/202857#M40101</link>
      <description>&lt;P&gt;You can either edit inputs.conf directly or update via the GUI. Through the GUI, use the More settings area in the UDP definition page to see "restrict to host" to set the 1st type I listed above. For the second type, simple create a new UDP input with a new, unique port. To modify through the CLI using the inputs.conf file, you'd want to find the one your input is already defined in. Possibly in the search or launcher app directory structures, under local.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 15:48:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-syslog-host-to-a-specific-sourcetype/m-p/202857#M40101</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-08-03T15:48:57Z</dc:date>
    </item>
  </channel>
</rss>

