<?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: using the Field Extractor in sourcetype is nix:syslog in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/using-the-Field-Extractor-in-sourcetype-is-nix-syslog/m-p/755254#M120607</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/48987"&gt;@prewin&lt;/a&gt;,&lt;BR /&gt;Thanks for the detailed explanation.&lt;/P&gt;&lt;P&gt;For the first method — I’m using &lt;STRONG&gt;Splunk Connect for Syslog (SC4S)&lt;/STRONG&gt;, so I’m not exactly sure where I can modify or split the sources there as in the syslog-ng example.&lt;/P&gt;&lt;P&gt;As for the second method (using props.conf and transforms.conf), I tried it but it didn’t work for me.&lt;BR /&gt;I believe the reason is that my data is &lt;STRONG&gt;already indexed&lt;/STRONG&gt;, and as far as I understand, these configurations are only applied &lt;STRONG&gt;at index time&lt;/STRONG&gt;, typically on the &lt;STRONG&gt;forwarder&lt;/STRONG&gt; or &lt;STRONG&gt;heavy forwarder&lt;/STRONG&gt; before the data reaches the indexer.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Nov 2025 07:48:15 GMT</pubDate>
    <dc:creator>kn450</dc:creator>
    <dc:date>2025-11-06T07:48:15Z</dc:date>
    <item>
      <title>using the Field Extractor in sourcetype is nix:syslog</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/using-the-Field-Extractor-in-sourcetype-is-nix-syslog/m-p/755194#M120605</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I’m currently working on creating field extractions using the &lt;STRONG&gt;Field Extractor&lt;/STRONG&gt; in Splunk. However, I’ve run into an issue when the &lt;STRONG&gt;sourcetype&lt;/STRONG&gt; is nix:syslog.&lt;/P&gt;
&lt;P&gt;Here’s the situation:&lt;BR /&gt;I’m sending logs from multiple products through syslog, and they all share the same sourcetype = nix:syslog.&lt;BR /&gt;When I use the Field Extractor to create an extraction for one product, it automatically applies to &lt;EM&gt;all&lt;/EM&gt; sources that use this sourcetype.&lt;BR /&gt;This causes incorrect extractions for the other products since their log formats are different.&lt;/P&gt;
&lt;P&gt;What I’d like to do is create field extractions &lt;STRONG&gt;based on eventtype (or possibly source or host)&lt;/STRONG&gt; instead of sourcetype.&lt;BR /&gt;Ideally, I’d like to define extractions per eventtype, since that would give me much better control and separation between products.&lt;/P&gt;
&lt;P&gt;Is there a way to do this in Splunk — to have field extractions scoped or applied by eventtype (or source/host) instead of sourcetype?&lt;BR /&gt;Any advice or best practices would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2026 23:10:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/using-the-Field-Extractor-in-sourcetype-is-nix-syslog/m-p/755194#M120605</guid>
      <dc:creator>kn450</dc:creator>
      <dc:date>2026-06-22T23:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: using the Field Extractor in sourcetype is nix:syslog</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/using-the-Field-Extractor-in-sourcetype-is-nix-syslog/m-p/755196#M120606</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/275296"&gt;@kn450&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whats your setup? Multiple products sending syslog traffic to splunk syslog receiver? or do you have any syslog-ng/rsyslog setup?&lt;/P&gt;&lt;P&gt;If you have multiple products better to use syslog-ng/ryslog to listen syslog port(single or dedicated port) and filter incoming messages by pattern, host, or facility and then send them to different destinations.&lt;/P&gt;&lt;P&gt;Eg:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# Source: listen for syslog on UDP 514
source s_net {
    udp(ip(0.0.0.0) port(514));
};

# Filters based on client IP
filter f_productA { netmask(192.168.x.x/32); };
filter f_productB { netmask(192.168.x.x/32); };

# Destinations: write to different files
destination d_productA {
    file("/var/log/productA.log");
};

destination d_productB {
    file("/var/log/productB.log");
};

# Log paths
log { source(s_net); filter(f_productA); destination(d_productA); };
log { source(s_net); filter(f_productB); destination(d_productB); };&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Then use splunk inputs.conf for each product and assign correct sourcetype,index....&lt;/P&gt;&lt;P&gt;If you can’t split at syslog, you can still do it on the Splunk side. Use props.conf with a TRANSFORMS stanza to rewrite the sourcetype based on a regex match&lt;/P&gt;&lt;P&gt;Eg:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# props.conf
[nix:syslog]
TRANSFORMS-set_sourcetype = set_productA, set_productB

# transforms.conf
[set_productA]
REGEX = ProductA
DEST_KEY = MetaData:Sourcetype
FORMAT = sourcetype::productA_syslog

[set_productB]
REGEX = ProductB
DEST_KEY = MetaData:Sourcetype
FORMAT = sourcetype::productB_syslog&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Prewin&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2025 08:16:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/using-the-Field-Extractor-in-sourcetype-is-nix-syslog/m-p/755196#M120606</guid>
      <dc:creator>PrewinThomas</dc:creator>
      <dc:date>2025-11-05T08:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: using the Field Extractor in sourcetype is nix:syslog</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/using-the-Field-Extractor-in-sourcetype-is-nix-syslog/m-p/755254#M120607</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/48987"&gt;@prewin&lt;/a&gt;,&lt;BR /&gt;Thanks for the detailed explanation.&lt;/P&gt;&lt;P&gt;For the first method — I’m using &lt;STRONG&gt;Splunk Connect for Syslog (SC4S)&lt;/STRONG&gt;, so I’m not exactly sure where I can modify or split the sources there as in the syslog-ng example.&lt;/P&gt;&lt;P&gt;As for the second method (using props.conf and transforms.conf), I tried it but it didn’t work for me.&lt;BR /&gt;I believe the reason is that my data is &lt;STRONG&gt;already indexed&lt;/STRONG&gt;, and as far as I understand, these configurations are only applied &lt;STRONG&gt;at index time&lt;/STRONG&gt;, typically on the &lt;STRONG&gt;forwarder&lt;/STRONG&gt; or &lt;STRONG&gt;heavy forwarder&lt;/STRONG&gt; before the data reaches the indexer.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 07:48:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/using-the-Field-Extractor-in-sourcetype-is-nix-syslog/m-p/755254#M120607</guid>
      <dc:creator>kn450</dc:creator>
      <dc:date>2025-11-06T07:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: using the Field Extractor in sourcetype is nix:syslog</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/using-the-Field-Extractor-in-sourcetype-is-nix-syslog/m-p/755263#M120608</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/275296"&gt;@kn450&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To scope search-time field extractions on host or source instead of sourcetype you can use the following syntax in your props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[source::yourSourceName]
...
yourExtractionsHere
...

OR

[host::yourHostName]
...
yourExtractionsHere
...&lt;/LI-CODE&gt;&lt;P&gt;For more info check out the docs on props.conf at&amp;nbsp;&lt;A href="https://help.splunk.com/en/splunk-enterprise/administer/admin-manual/9.4/configuration-file-reference/9.4.6-configuration-file-reference/props.conf#:~:text=stanza%20takes%20precedence.-,%5B%3Cspec%3E%5D,-*%20This%20stanza%20enables" target="_blank"&gt;https://help.splunk.com/en/splunk-enterprise/administer/admin-manual/9.4/configuration-file-reference/9.4.6-configuration-file-reference/props.conf#:~:text=stanza%20takes%20precedence.-,%5B%3Cspec%3E%5D,-*%20This%20stanza%20enables&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[&amp;lt;spec&amp;gt;]
* This stanza enables properties for a given &amp;lt;spec&amp;gt;.
* A props.conf file can contain multiple stanzas for any number of
different &amp;lt;spec&amp;gt;.
* Follow this stanza name with any number of the following setting/value
pairs, as appropriate for what you want to do.
* If you do not set a setting for a given &amp;lt;spec&amp;gt;, the default is used.

&amp;lt;spec&amp;gt; can be:
1. &amp;lt;sourcetype&amp;gt;, the source type of an event.
2. host::&amp;lt;host&amp;gt;, where &amp;lt;host&amp;gt; is the host, or host-matching pattern, for an
event.
3. source::&amp;lt;source&amp;gt;, where &amp;lt;source&amp;gt; is the source, or source-matching
pattern, for an event.
4. rule::&amp;lt;rulename&amp;gt;, where &amp;lt;rulename&amp;gt; is a unique name of a source type
classification rule.
5. delayedrule::&amp;lt;rulename&amp;gt;, where &amp;lt;rulename&amp;gt; is a unique name of a delayed
source type classification rule.
These are only considered as a last resort
before generating a new source type based on the
source seen.&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 10:23:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/using-the-Field-Extractor-in-sourcetype-is-nix-syslog/m-p/755263#M120608</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-11-06T10:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: using the Field Extractor in sourcetype is nix:syslog</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/using-the-Field-Extractor-in-sourcetype-is-nix-syslog/m-p/755326#M120609</link>
      <description>&lt;P&gt;Thanks in advance for the help.&lt;BR /&gt;I’ve created an eventtype="auth_successful" for VPN&amp;nbsp; logs and I’d like to create field extractions based on this eventtype.&lt;/P&gt;&lt;P&gt;I tried using a stanza like this in props.conf:&lt;/P&gt;&lt;P&gt;[eventtype=auth_successful]&lt;BR /&gt;EXTRACT-fields = ...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;but it didn’t work.&lt;/P&gt;&lt;P&gt;It seems Splunk doesn’t support applying props directly to eventtypes (like it does for sourcetype, source, or host).&lt;/P&gt;&lt;P&gt;Can someone confirm if this is the case, and what’s the best way to scope extractions so they only apply to events matching this eventtype?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 08 Nov 2025 06:36:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/using-the-Field-Extractor-in-sourcetype-is-nix-syslog/m-p/755326#M120609</guid>
      <dc:creator>kn450</dc:creator>
      <dc:date>2025-11-08T06:36:41Z</dc:date>
    </item>
  </channel>
</rss>

