<?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 -&amp;gt; 2 different Regex -&amp;gt; different destinations each in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-gt-2-different-Regex-gt-different-destinations-each/m-p/576612#M101877</link>
    <description>&lt;P&gt;If you just want to manipulate syslog events. Use a syslog daemon. Using HF for it is a huge overkill.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Nov 2021 12:59:18 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2021-11-29T12:59:18Z</dc:date>
    <item>
      <title>Syslog -&gt; 2 different Regex -&gt; different destinations each</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-gt-2-different-Regex-gt-different-destinations-each/m-p/576201#M101825</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have been trying to get a Splunk config to work for a while, and have come here for help! I'm out of ideas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have Network Syslog from many different&amp;nbsp; sources all being sent to a Heavy Forwarder.&lt;/P&gt;&lt;P&gt;My hope is to get the syslog matched against two different regex's and have the matched data sent to two different locations.&lt;/P&gt;&lt;P&gt;My Configs:&lt;/P&gt;&lt;P&gt;&lt;U&gt;props&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[host::*]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;TRANSFORMS-SYSLOG = send_to_serverA, send_to_serverB&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;transforms&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[send_to_serverA]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;regex = "regex goes here"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;DEST_KEY = _SYSLOG_ROUTING&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;FORMAT = serverA&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[send_to_serverB]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;regex = "regex goes here"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;DEST_KEY = _SYSLOG_ROUTING&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;FORMAT = serverB&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;outputs&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[syslog:serverA_group]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;server = x.x.x.1:514,x.x.x.2:514&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[syslog:serverB_group]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;server = x.x.1.1:514,x.x.1.2:514&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is currently not working and it seems to have something to do with the DEST_KEY = _SYSLOG_ROUTING.&lt;/P&gt;&lt;P&gt;I get some very strange results.&lt;/P&gt;&lt;P&gt;Can any one point out where I have gone wrong? If this can be done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 15:07:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-gt-2-different-Regex-gt-different-destinations-each/m-p/576201#M101825</guid>
      <dc:creator>RyanH</dc:creator>
      <dc:date>2021-11-24T15:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog -&gt; 2 different Regex -&gt; different destinations each</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-gt-2-different-Regex-gt-different-destinations-each/m-p/576391#M101851</link>
      <description>Hi&lt;BR /&gt;maybe this is not what you are expecting, but why you want to use HF as syslog server? You are getting in pure syslog messages and forward those to another syslog servers (not into splunk). It's much better to use real syslog server (eg. rsyslog or syslog-ng) for this than Splunk HF.&lt;BR /&gt;r. Ismo</description>
      <pubDate>Fri, 26 Nov 2021 08:20:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-gt-2-different-Regex-gt-different-destinations-each/m-p/576391#M101851</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-11-26T08:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog -&gt; 2 different Regex -&gt; different destinations each</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-gt-2-different-Regex-gt-different-destinations-each/m-p/576392#M101852</link>
      <description>&lt;P&gt;As a nice "side effect", with a proper syslog server (with rsyslog for sure but probably syslog-ng can do that too), apart from redirecting simple syslog messages you can also send events via HEC to splunk.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 08:35:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-gt-2-different-Regex-gt-different-destinations-each/m-p/576392#M101852</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-11-26T08:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog -&gt; 2 different Regex -&gt; different destinations each</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-gt-2-different-Regex-gt-different-destinations-each/m-p/576603#M101876</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using the HF because I want to filter the results that I send to each "Server", this allows me to collect all the Syslog and only index the messages I'm looking for.&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;P&gt;All Syslog -&amp;gt; (Regex match ) -&amp;gt; ServerA (My Splunk Server)&lt;/P&gt;&lt;P&gt;All Syslog -&amp;gt; (Regex match ) -&amp;gt; ServerB&amp;nbsp; (third party syslog server)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The HF seems to be able to do it, I just seem to be missing how to match two different regex's and send the results too the different servers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be great,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 11:12:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-gt-2-different-Regex-gt-different-destinations-each/m-p/576603#M101876</guid>
      <dc:creator>RyanH</dc:creator>
      <dc:date>2021-11-29T11:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog -&gt; 2 different Regex -&gt; different destinations each</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-gt-2-different-Regex-gt-different-destinations-each/m-p/576612#M101877</link>
      <description>&lt;P&gt;If you just want to manipulate syslog events. Use a syslog daemon. Using HF for it is a huge overkill.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 12:59:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-gt-2-different-Regex-gt-different-destinations-each/m-p/576612#M101877</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-11-29T12:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog -&gt; 2 different Regex -&gt; different destinations each</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-gt-2-different-Regex-gt-different-destinations-each/m-p/576696#M101887</link>
      <description>&lt;P&gt;That is much better to do with syslog. Both rsyslog and syslog-ng can do that.&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://www.rsyslog.com/doc/v8-stable/configuration/filters.html" target="_blank"&gt;https://www.rsyslog.com/doc/v8-stable/configuration/filters.html&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://kifarunix.com/a-basic-introduction-to-rsyslog-filters/2/" target="_blank"&gt;https://kifarunix.com/a-basic-introduction-to-rsyslog-filters/2/&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.16/administration-guide/51" target="_blank"&gt;https://www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.16/administration-guide/51&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Above are some instructions how to do it and there are more on net.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 07:00:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-gt-2-different-Regex-gt-different-destinations-each/m-p/576696#M101887</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-11-30T07:00:58Z</dc:date>
    </item>
  </channel>
</rss>

