<?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 filter specific logs and send it as syslog to a third-party host in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-specific-logs-and-send-it-as-syslog-to-a-third/m-p/703240#M116306</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&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;Removing this option from my tcpout stanza would cause, that everything else being logged to my indexer, would not be sent anymore by my heavyforwarder.&lt;/P&gt;&lt;P&gt;My main issue is that my third-party host gets sent everything from my sourcetype kube_audit instead only a specific part (which should include everything matching with my regex).&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have a setup, where my heavyforwarder sends a lot to my indexers in my environment, but now for security purposes, we want to send a specific part through the syslogoutputprocessor to a third-party host, which should receive it on port 514 via UDP. Instead of respecting my regex defined in transforms.conf, it sends everything regarding the sourcetype kube_audit defined in my props.conf (what you would expect if "REGEX = (.)" would do).&lt;/P&gt;&lt;P&gt;Any other way you fixed it?&lt;/P&gt;&lt;P&gt;Thanks for helping&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2024 08:12:29 GMT</pubDate>
    <dc:creator>LittleFatFish</dc:creator>
    <dc:date>2024-10-31T08:12:29Z</dc:date>
    <item>
      <title>How to filter specific logs and send it as syslog to a third-party host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-specific-logs-and-send-it-as-syslog-to-a-third/m-p/703109#M116283</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I want to send logs (which are part from our sourcetype [kube_audit]) from my HeavyForwarder to a third-party system (in my case SIEM) in syslog-format, and only those, which are caught with the regex defined. Everything else should be sent normally to my Indexers. There exists a documentation, but for my use-case there is no further description. (&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.3.0/Forwarding/Routeandfilterdatad#Filter_and_route_event_data_to_target_groups" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/9.1.3/Forwarding/Routeandfilterdatad#Filter_and_route_event_data_to_target_groups&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Forwarddatatothird-partysystemsd" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Forwarddatatothird-partysystemsd&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;I tried to follow the documentation and tried many things. But I end up with my third-party host receiving ALL logs of my sourcetype [kube_audit] instead only a part of it. I checked my regex, as I suspected this would be my point of failure, but there must be some other configurations I am missing, as in a simple setup, the regex works as it is.&lt;/P&gt;&lt;P&gt;My setup for outputs, transforms and props.conf:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;props.conf:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[kube_audit]
TRANSFORMS-routing = route_to_sentinel&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;transforms.conf:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[route_to_sentinel]
REGEX = (?&amp;lt;sentinel&amp;gt;"verb":"create".*"impersonatedUser".*"objectRef":\{"resource":"pods".*"subresource":"exec")
DEST_KEY = _SYSLOG_ROUTING
FORMAT = sentinel_forwarders&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;outputs.conf:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[tcpout]
defaultGroup = my_indexers
forwardedindex.filter.disable = true
indexAndForward = false
useACK = true
backoffOnFailure = 5
connectionTTL = 3500
writeTimeout = 100
maxConnectionsPerIndexer = 20

[tcpout:my_indexers]
server=&amp;lt;list_of_servers&amp;gt;

[syslog]
defaultGroup = sentinel_forwarders

[syslog:sentinel_forwarders]
server = mythirdpartyhost:514
type = udp&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something? Any notable things I did miss? Any help is appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 15:10:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-specific-logs-and-send-it-as-syslog-to-a-third/m-p/703109#M116283</guid>
      <dc:creator>LittleFatFish</dc:creator>
      <dc:date>2024-10-30T15:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter specific logs and send it as syslog to a third-party host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-specific-logs-and-send-it-as-syslog-to-a-third/m-p/703230#M116305</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/273092"&gt;@LittleFatFish&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;what's your issue: you don't send logs to the third party syslog or you send all your logs?&lt;/P&gt;&lt;P&gt;I experienced both the issues.&lt;/P&gt;&lt;P&gt;I solved the first removing:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;defaultGroup = my_indexers&lt;/LI-CODE&gt;&lt;P&gt;in [tcpout] stanza.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 07:22:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-specific-logs-and-send-it-as-syslog-to-a-third/m-p/703230#M116305</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-10-31T07:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter specific logs and send it as syslog to a third-party host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-specific-logs-and-send-it-as-syslog-to-a-third/m-p/703240#M116306</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&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;Removing this option from my tcpout stanza would cause, that everything else being logged to my indexer, would not be sent anymore by my heavyforwarder.&lt;/P&gt;&lt;P&gt;My main issue is that my third-party host gets sent everything from my sourcetype kube_audit instead only a specific part (which should include everything matching with my regex).&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have a setup, where my heavyforwarder sends a lot to my indexers in my environment, but now for security purposes, we want to send a specific part through the syslogoutputprocessor to a third-party host, which should receive it on port 514 via UDP. Instead of respecting my regex defined in transforms.conf, it sends everything regarding the sourcetype kube_audit defined in my props.conf (what you would expect if "REGEX = (.)" would do).&lt;/P&gt;&lt;P&gt;Any other way you fixed it?&lt;/P&gt;&lt;P&gt;Thanks for helping&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 08:12:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-specific-logs-and-send-it-as-syslog-to-a-third/m-p/703240#M116306</guid>
      <dc:creator>LittleFatFish</dc:creator>
      <dc:date>2024-10-31T08:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter specific logs and send it as syslog to a third-party host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-specific-logs-and-send-it-as-syslog-to-a-third/m-p/703246#M116307</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/273092"&gt;@LittleFatFish&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;in this case, check if the sourcetype in props.conf is correct and especially if it's overrided, maybe when the transformation is applied your events still have the original sourcetype.&lt;/P&gt;&lt;P&gt;Then obviously (but I'm sure that you already did it) check again the regex in transforma.conf.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 08:33:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-specific-logs-and-send-it-as-syslog-to-a-third/m-p/703246#M116307</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-10-31T08:33:22Z</dc:date>
    </item>
  </channel>
</rss>

