<?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: Syslog Forwarding Filtering in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-Forwarding-Filtering/m-p/700129#M115950</link>
    <description>&lt;P&gt;This is not a reliable way. If any other host mentions the host we're after, such event will get routed to syslog...&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2024 19:00:41 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2024-09-25T19:00:41Z</dc:date>
    <item>
      <title>Syslog Forwarding Filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-Forwarding-Filtering/m-p/699987#M115937</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Imagine you have hundreds of Windows Universal Forwarders each sending three sources to your "Heavy Forwarders" then forwarded to the Indexers.&lt;BR /&gt;&lt;BR /&gt;Imagine you want to send just one of the sources, source A, of one of those Universal Forwarders, host A, via Syslog to a 3rd Party.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an "elegant way" of filtering just that specific source of that specific host to be sent via syslog on the "Heavy Forwarders"/Indexers?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 18:31:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-Forwarding-Filtering/m-p/699987#M115937</guid>
      <dc:creator>tsocyberoperati</dc:creator>
      <dc:date>2024-09-24T18:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog Forwarding Filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-Forwarding-Filtering/m-p/700050#M115938</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/34498"&gt;@tsocyberoperati&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you have to follow the instructions at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.3.1/Forwarding/Forwarddatatothird-partysystemsd#Forward_a_subset_of_data" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.3.1/Forwarding/Forwarddatatothird-partysystemsd#Forward_a_subset_of_data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;in props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[host::hostA]
TRANSFORMS-hostA = send_to_syslog&lt;/LI-CODE&gt;&lt;P&gt;in transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[send_to_syslog]
REGEX = .
DEST_KEY = _SYSLOG_ROUTING
FORMAT = my_syslog_group&lt;/LI-CODE&gt;&lt;P&gt;where my_syslog_group is the stanza in outputs.conf.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 06:29:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-Forwarding-Filtering/m-p/700050#M115938</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-09-25T06:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog Forwarding Filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-Forwarding-Filtering/m-p/700072#M115940</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;SPAN&gt;Giuseppe.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But the problem is related to filtering just one of the sources of that host.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you place a REGEX that is able to catch only the events of that specific source, you're good to go.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But imagine you don't have a REGEX that can catch all the events of that source. how can you filter?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 09:18:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-Forwarding-Filtering/m-p/700072#M115940</guid>
      <dc:creator>tsocyberoperati</dc:creator>
      <dc:date>2024-09-25T09:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog Forwarding Filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-Forwarding-Filtering/m-p/700078#M115942</link>
      <description>&lt;P&gt;You _probably_ (haven't tested it myself but I don't see why it shouldn't work) could do it using INGEST_EVAL.&lt;/P&gt;&lt;P&gt;Something like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[host::hostA]
TRANSFORMS-hostA = send_to_syslog&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;[send_to_syslog]
REGEX = .
INGEST_EVAL = _SYSLOG_ROUTING=if(source="whatever","my_syslog_group",null())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: OK, there is obvously a much easier way I forgot about.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[send_to_syslog]
REGEX = /somewhere/my/source/file.txt
SOURCE_KEY = MetaData:Source
DEST_KEY = _SYSLOG_ROUTING
FORMAT = my_syslog_group&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 25 Sep 2024 19:05:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-Forwarding-Filtering/m-p/700078#M115942</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-09-25T19:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog Forwarding Filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-Forwarding-Filtering/m-p/700090#M115947</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/34498"&gt;@tsocyberoperati&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;in props.conf you can choose a source or an host to filter.&lt;/P&gt;&lt;P&gt;If choosing the source, you can find with a regex the hostname in your logs you can solve your issue:&lt;/P&gt;&lt;P&gt;e.g. if your source is "/opt/tmp/files/myfile.txt" and the host name is contained in the logs and it's "my_host", you could try:&lt;/P&gt;&lt;P&gt;in props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[source::/opt/tmp/files/myfile.txt]
TRANSFORMS-hostA = send_to_syslog&lt;/LI-CODE&gt;&lt;P&gt;in transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[send_to_syslog]
REGEX = my_host
DEST_KEY = _SYSLOG_ROUTING
FORMAT = my_syslog_group&lt;/LI-CODE&gt;&lt;P&gt;The only limit is that the hostname must be contained in all events..&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 12:43:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-Forwarding-Filtering/m-p/700090#M115947</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-09-25T12:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog Forwarding Filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-Forwarding-Filtering/m-p/700129#M115950</link>
      <description>&lt;P&gt;This is not a reliable way. If any other host mentions the host we're after, such event will get routed to syslog...&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 19:00:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-Forwarding-Filtering/m-p/700129#M115950</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-09-25T19:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog Forwarding Filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-Forwarding-Filtering/m-p/700162#M115954</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/34498"&gt;@tsocyberoperati&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;the&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;'s hint is correct, but you can use this approach finding a correct regex to&amp;nbsp;identify the hosts.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 06:37:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-Forwarding-Filtering/m-p/700162#M115954</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-09-26T06:37:27Z</dc:date>
    </item>
  </channel>
</rss>

