<?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: Different sourcetype with one hostname in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Different-sourcetype-with-one-hostname/m-p/493333#M84305</link>
    <description>&lt;P&gt;no my reason is just for identifying the flow.&lt;BR /&gt;
my setting in transforms.conf :&lt;BR /&gt;
[fw-sourcetype]&lt;BR /&gt;
REGEX = FG1092&lt;BR /&gt;
DEST_KEY = MetaData:sourcetype&lt;BR /&gt;
FORMAT = fortigate&lt;/P&gt;

&lt;P&gt;in props.conf&lt;BR /&gt;
[host::192.168.x.x]&lt;BR /&gt;
TRANSFORMS-sourcetype-fg = fw-sourcetype&lt;/P&gt;</description>
    <pubDate>Tue, 19 May 2020 08:04:51 GMT</pubDate>
    <dc:creator>khanlarloo</dc:creator>
    <dc:date>2020-05-19T08:04:51Z</dc:date>
    <item>
      <title>Different sourcetype with one hostname</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Different-sourcetype-with-one-hostname/m-p/493325#M84297</link>
      <description>&lt;P&gt;We have a series of logs from different devices such as (Firewall .waf. antivirus,...) that come from syslog server to Splunk with the same host name. I want to separate the logs based on sourcetype. All logs have the same Hostname and source.&lt;BR /&gt;
is it possible to define different sourcetype?&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 10:52:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Different-sourcetype-with-one-hostname/m-p/493325#M84297</guid>
      <dc:creator>khanlarloo</dc:creator>
      <dc:date>2020-05-11T10:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Different sourcetype with one hostname</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Different-sourcetype-with-one-hostname/m-p/493326#M84298</link>
      <description>&lt;P&gt;All data coming from the same source makes it difficult for syslog to segregate it.  Can you have the data come in on different ports?  That will give syslog something to work with.  Otherwise, syslog will have to parse each event to try to determine the sourcetype, which will be slow.&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 14:11:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Different-sourcetype-with-one-hostname/m-p/493326#M84298</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-11T14:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Different sourcetype with one hostname</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Different-sourcetype-with-one-hostname/m-p/493327#M84299</link>
      <description>&lt;P&gt;no they don't come from different port.(hostname,Source and sourcetype) are the same.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 02:53:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Different-sourcetype-with-one-hostname/m-p/493327#M84299</guid>
      <dc:creator>khanlarloo</dc:creator>
      <dc:date>2020-05-12T02:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Different sourcetype with one hostname</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Different-sourcetype-with-one-hostname/m-p/493328#M84300</link>
      <description>&lt;P&gt;I understand they are not coming from different ports today, but can you &lt;EM&gt;change&lt;/EM&gt; them to do so?  Have some services enter port 514, others in port 1514, etc., and have syslog sort them by incoming port.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 12:43:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Different-sourcetype-with-one-hostname/m-p/493328#M84300</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-12T12:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Different sourcetype with one hostname</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Different-sourcetype-with-one-hostname/m-p/493329#M84301</link>
      <description>&lt;P&gt;No. i can't change the port number.I have no way to change the port. is there a way i can configure the transforms.conf or props.conf files to receive logs in different sourcetype?&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 04:10:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Different-sourcetype-with-one-hostname/m-p/493329#M84301</guid>
      <dc:creator>khanlarloo</dc:creator>
      <dc:date>2020-05-13T04:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Different sourcetype with one hostname</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Different-sourcetype-with-one-hostname/m-p/493330#M84302</link>
      <description>&lt;P&gt;The problem with changing sourcetypes in props/transforms is the new sourcetype will not be processed.  That is, the event will have the sourcetype=foo, but none of the field extractions, etc, associated with foo will be performed.  That is because the application of props and transforms is a one-pass process.&lt;BR /&gt;
I think the better option is to have syslog sort events based on their content into separate files or directories.  Then the Splunk UF can apply the appropriate sourcetype based on the file or directory name.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 12:55:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Different-sourcetype-with-one-hostname/m-p/493330#M84302</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-13T12:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Different sourcetype with one hostname</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Different-sourcetype-with-one-hostname/m-p/493331#M84303</link>
      <description>&lt;P&gt;thank you for your help.&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2020 03:12:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Different-sourcetype-with-one-hostname/m-p/493331#M84303</guid>
      <dc:creator>khanlarloo</dc:creator>
      <dc:date>2020-05-16T03:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Different sourcetype with one hostname</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Different-sourcetype-with-one-hostname/m-p/493332#M84304</link>
      <description>&lt;P&gt;Hi @khanlarloo,&lt;BR /&gt;
you can override host and/or sourcetype reading the content of the syslogs: &lt;BR /&gt;
usually hostname is in the beginning of each row, so you can use the process described at &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.0.2003/Data/Overridedefaulthostassignments"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.0.2003/Data/Overridedefaulthostassignments&lt;/A&gt; &lt;BR /&gt;
for sourcetype, you can use &lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/overriding-default-syslog-host-extraction.html"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/overriding-default-syslog-host-extraction.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Only one question: do you want a different sourcetype to identify the flow or for a different reason?&lt;BR /&gt;
remember that knowledge object are usually related to sourcetype, so if you have more sourcetypes, you must create all the knowledge objects definition for each seorcetype.&lt;BR /&gt;
If instead you have different definitions for each kind of log the sourcetype's override is a good idea.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 09:44:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Different-sourcetype-with-one-hostname/m-p/493332#M84304</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-05-17T09:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Different sourcetype with one hostname</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Different-sourcetype-with-one-hostname/m-p/493333#M84305</link>
      <description>&lt;P&gt;no my reason is just for identifying the flow.&lt;BR /&gt;
my setting in transforms.conf :&lt;BR /&gt;
[fw-sourcetype]&lt;BR /&gt;
REGEX = FG1092&lt;BR /&gt;
DEST_KEY = MetaData:sourcetype&lt;BR /&gt;
FORMAT = fortigate&lt;/P&gt;

&lt;P&gt;in props.conf&lt;BR /&gt;
[host::192.168.x.x]&lt;BR /&gt;
TRANSFORMS-sourcetype-fg = fw-sourcetype&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 08:04:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Different-sourcetype-with-one-hostname/m-p/493333#M84305</guid>
      <dc:creator>khanlarloo</dc:creator>
      <dc:date>2020-05-19T08:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Different sourcetype with one hostname</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Different-sourcetype-with-one-hostname/m-p/493334#M84306</link>
      <description>&lt;P&gt;Hi @khanlarloo,&lt;BR /&gt;
if it's only to identify the flow, you could override host using the link I honted, so you can maintainal the knowledge objects related to the same sourcetype.&lt;BR /&gt;
If you anyway want to override sourcetype follow the instructions in the above url:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[fw-sourcetype]
REGEX = FG1092
DEST_KEY = MetaData:sourcetype
FORMAT = sourcetype::fortigate
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 12:25:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Different-sourcetype-with-one-hostname/m-p/493334#M84306</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-05-19T12:25:57Z</dc:date>
    </item>
  </channel>
</rss>

