<?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: Can data have more then one source type? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-data-have-more-then-one-source-type/m-p/96710#M20152</link>
    <description>&lt;P&gt;Data may only have a single sourcetype. However, if you define a new sourcetype, you can set it to perform multiple transforms and field extractions that would apply to, say, both syslog and to access_combined, but looking at and duplicating the configurations of each in props.conf.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Mar 2012 00:19:39 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2012-03-20T00:19:39Z</dc:date>
    <item>
      <title>Can data have more then one source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-data-have-more-then-one-source-type/m-p/96708#M20150</link>
      <description>&lt;P&gt;Our Splunk server receives data through syslog, and all data is tagged with 'sourcetype=syslog'.&lt;/P&gt;

&lt;P&gt;I am interested in using the &lt;A href="http://splunk-base.splunk.com/apps/28994/splunk-app-for-web-intelligence"&gt;Splunk App for Web Intelligence&lt;/A&gt; to parse data from several dozen different Apache webservers. My weblogs are sent to Splunk, but they are sent via syslog and thus Splunk automatically assigns the 'syslog' sourcetype to this data. The Splunk App for Web Intelligence doesn't work with 'sourcetype=syslog'. I need to assign a new kind of sourcetype to this data.&lt;/P&gt;

&lt;P&gt;Can data belong to multiple kinds of sourcetypes? If I define the Sourcetype like 'access_combined' for my Apache HTTP logs, will it still belong to the 'syslog' Sourcetype?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2012 23:30:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-data-have-more-then-one-source-type/m-p/96708#M20150</guid>
      <dc:creator>stefanlasiewski</dc:creator>
      <dc:date>2012-03-19T23:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can data have more then one source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-data-have-more-then-one-source-type/m-p/96709#M20151</link>
      <description>&lt;P&gt;You can perform a sourcetype transform on the data coming in to your syslog input.&lt;/P&gt;

&lt;P&gt;So you can identify particular messages by host or a regex pattern on the message contents etc.. and dynamically update the sourcetype field and any other meta fields.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[udp://514]
connection_host = dns
sourcetype = syslog
disabled = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog]
TRANSFORMS-web = set_web_sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[set_web_sourcetype]
REGEX = (.+Some Regex Pattern.+)
DEST_KEY = MetaData:Sourcetype
FORMAT = sourcetype::my_new_sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Alternatively ,you could just set up a dedicated syslog input for your webserver data.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[udp://5678]
connection_host = dns
sourcetype = my_custom_sourcetype
disabled = false
index = my_index
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Mar 2012 23:45:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-data-have-more-then-one-source-type/m-p/96709#M20151</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2012-03-19T23:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can data have more then one source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-data-have-more-then-one-source-type/m-p/96710#M20152</link>
      <description>&lt;P&gt;Data may only have a single sourcetype. However, if you define a new sourcetype, you can set it to perform multiple transforms and field extractions that would apply to, say, both syslog and to access_combined, but looking at and duplicating the configurations of each in props.conf.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2012 00:19:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-data-have-more-then-one-source-type/m-p/96710#M20152</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-03-20T00:19:39Z</dc:date>
    </item>
  </channel>
</rss>

