<?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 seperate different Sourcetype logs from single syslog IP source based on Regex in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-seperate-different-Sourcetype-logs-from-single-syslog-IP/m-p/613700#M106202</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/32102"&gt;@youngsuh&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;please don't attach a new question to an answered one: creating a new one you'll have faster and probably better answers!&lt;/P&gt;&lt;P&gt;Anyway, what do you want to match with your regex: the source or the log content?&lt;/P&gt;&lt;P&gt;from your props.conf it seems that you want to match with the source field, but in this case the regex is wrong.&lt;/P&gt;&lt;P&gt;If you want to match with the content of the log delete the "SOURCE_KEY" row.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 20 Sep 2022 06:28:25 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-09-20T06:28:25Z</dc:date>
    <item>
      <title>How to seperate different Sourcetype logs from single syslog IP source based on Regex</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-seperate-different-Sourcetype-logs-from-single-syslog-IP/m-p/585312#M102988</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;I am trying to get different log types such as security and audit logs for example from a single IP source from my HF instance, how exactly should I be settings my settings in Inputs, Transforms and Props conf in my HF to accomplish this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 09:46:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-seperate-different-Sourcetype-logs-from-single-syslog-IP/m-p/585312#M102988</guid>
      <dc:creator>NightShark</dc:creator>
      <dc:date>2022-02-16T09:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to seperate different Sourcetype logs from single syslog IP source based on Regex</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-seperate-different-Sourcetype-logs-from-single-syslog-IP/m-p/585319#M102989</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/239089"&gt;@NightShark&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you have to override sourcetypes on event basis.&lt;/P&gt;&lt;P&gt;You can find a description of this job at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/Advancedsourcetypeoverrides#:~:text=You%20can%20override%20source%20types,directly%20on%20the%20instance%20itself" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/Advancedsourcetypeoverrides#:~:text=You%20can%20override%20source%20types,directly%20on%20the%20instance%20itself&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;In few words, you have to identify the regexes for each destination sourcetype and then put in your Indexers or (if present) in your Heavy Forwarders:&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[your_sourcetype]
TRANSFORMS-override_sourcetype = override_sourcetype_1, override_sourcetype_2&lt;/LI-CODE&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[override_sourcetype_1]
REGEX = &amp;lt;your_regex_1&amp;gt;
FORMAT = sourcetype::&amp;lt;your_custom_sourcetype_value&amp;gt;
DEST_KEY = MetaData:Sourcetype

[override_sourcetype_2]
REGEX = &amp;lt;your_regex_2&amp;gt;
FORMAT = sourcetype::&amp;lt;your_custom_sourcetype_value&amp;gt;
DEST_KEY = MetaData:Sourcetype&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;In this example I use two destination sourcetypes.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 10:25:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-seperate-different-Sourcetype-logs-from-single-syslog-IP/m-p/585319#M102989</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-16T10:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to seperate different Sourcetype logs from single syslog IP source based on Regex</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-seperate-different-Sourcetype-logs-from-single-syslog-IP/m-p/585321#M102990</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Thank you very much&amp;nbsp;&lt;SPAN&gt;gcusello,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 10:46:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-seperate-different-Sourcetype-logs-from-single-syslog-IP/m-p/585321#M102990</guid>
      <dc:creator>NightShark</dc:creator>
      <dc:date>2022-02-16T10:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to seperate different Sourcetype logs from single syslog IP source based on Regex</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-seperate-different-Sourcetype-logs-from-single-syslog-IP/m-p/613620#M106184</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you review mind?&amp;nbsp; Here is my inputs.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///var/log/$mask_host1$/syslog]
disabled = false
#initCrcLength = 800
crcSalt = &amp;lt;SOURCE&amp;gt;
index = test
sourcetype = uag:syslog

[monitor:///var/log/$mask_host2$/syslog]
disabled = false
#initCrcLength = 800
crcSalt = &amp;lt;SOURCE&amp;gt;
index = test
sourcetype = uag:syslog

[monitor:///var/log/$mask_host3/syslog]
disabled = false
#initCrcLength = 800
crcSalt = &amp;lt;SOURCE&amp;gt;
index = test
sourcetype = uag:syslog&lt;/LI-CODE&gt;&lt;P&gt;Here is props.conf on the HF.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[uag:syslog]
NO_BINARY_CHECK = true
category = Custom
pulldown_type = 1
TRANSFORMS-sourcetype = vmware:uag:admin, vmware:uag:audit, vmware:uag:esmanager&lt;/LI-CODE&gt;&lt;P&gt;Here is my transform.conf on the HF.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[uag:syslog]
REGEX = :\d\d\s+\w{5}\w{4}\suag-admin\:
FORMAT = sourcetype::vmware:uag:admin
SOURCE_KEY = MetaData:Source
DEST_KEY = MetaData:Sourcetype

[uag:syslog]
REGEX = :\d\d\s+\w{5}\w{4}\suag-audit\:
FORMAT = sourcetype::vmware:uag:admin
SOURCE_KEY = MetaData:Source
DEST_KEY = MetaData:Sourcetype

[uag:syslog]
REGEX = :\d\d\s+\w{5}\w{4}\suag-esmanager\:
FORMAT = sourcetype::vmware:uag:esmanager
SOURCE_KEY = MetaData:Source
DEST_KEY = MetaData:Sourcetype&lt;/LI-CODE&gt;&lt;P&gt;Is there anything I am doing wrong in the configuration?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 14:45:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-seperate-different-Sourcetype-logs-from-single-syslog-IP/m-p/613620#M106184</guid>
      <dc:creator>youngsuh</dc:creator>
      <dc:date>2022-09-19T14:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to seperate different Sourcetype logs from single syslog IP source based on Regex</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-seperate-different-Sourcetype-logs-from-single-syslog-IP/m-p/613700#M106202</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/32102"&gt;@youngsuh&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;please don't attach a new question to an answered one: creating a new one you'll have faster and probably better answers!&lt;/P&gt;&lt;P&gt;Anyway, what do you want to match with your regex: the source or the log content?&lt;/P&gt;&lt;P&gt;from your props.conf it seems that you want to match with the source field, but in this case the regex is wrong.&lt;/P&gt;&lt;P&gt;If you want to match with the content of the log delete the "SOURCE_KEY" row.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 06:28:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-seperate-different-Sourcetype-logs-from-single-syslog-IP/m-p/613700#M106202</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-20T06:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to seperate different Sourcetype logs from single syslog IP source based on Regex</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-seperate-different-Sourcetype-logs-from-single-syslog-IP/m-p/613807#M106231</link>
      <description>&lt;P&gt;Will create a new post next time.&amp;nbsp; I want to match log content.&amp;nbsp; So, I delete&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SOURCE_KEY = MetaData:Source&lt;/LI-CODE&gt;&lt;P&gt;you meant transform.conf right?&amp;nbsp; not props.conf&lt;/P&gt;&lt;P&gt;The props.conf should be change to match sourcetype right?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TRANSFORMS-uag:syslog = vmware:uag:admin, vmware:uag:audit, vmware:uag:esmanager&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 16:39:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-seperate-different-Sourcetype-logs-from-single-syslog-IP/m-p/613807#M106231</guid>
      <dc:creator>youngsuh</dc:creator>
      <dc:date>2022-09-20T16:39:38Z</dc:date>
    </item>
  </channel>
</rss>

