<?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: Forwarding to a third party syslog server based on both host, sourcetype and regex in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-to-a-third-party-syslog-server-based-on-both-host/m-p/522729#M88285</link>
    <description>&lt;P&gt;I don’t think you can make use of host and source combinations in single props stanza.&lt;/P&gt;&lt;P&gt;if source specified in props matches events coming from those hosts you want to include and event contains host value then you can modify your regex in transforms to identify events you want to forward to syslog.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Oct 2020 18:56:26 GMT</pubDate>
    <dc:creator>thambisetty</dc:creator>
    <dc:date>2020-10-02T18:56:26Z</dc:date>
    <item>
      <title>Forwarding to a third party syslog server based on both host, sourcetype and regex</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-to-a-third-party-syslog-server-based-on-both-host/m-p/522697#M88278</link>
      <description>&lt;P&gt;We have to forward some data from a Splunk Heavy Forwarder to a third party syslog server.&lt;/P&gt;&lt;P&gt;This is possible as indicated here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.splunk.com%2FDocumentation%2FSplunk%2F8.0.6%2FForwarding%2FForwarddatatothird-partysystemsd&amp;amp;data=02%7C01%7Cedoardo.vicendone%40avaloq.com%7C6719a4615ef246d386ac08d866e8e009%7C2ba8a4bf3d7a478bb8d185cae49436ef%7C0%7C0%7C637372499168632017&amp;amp;sdata=%2BWZIuk0XXv88LiopDmsCJwytSWlCdBxWGcWOzwxtvgQ%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.6/Forwarding/Forwarddatatothird-partysystemsd&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The challenge is to select only some files from a particular host and forward only the logs that contain a particular string.&lt;/P&gt;&lt;P&gt;Here is what we were able to achieve (basically 2 rules out of 3, so some files that contain a particular string), I don’t know if it is possible to add in some way a reference also for the host.&lt;/P&gt;&lt;P&gt;Do you know if it is feasible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;outputs.conf
[syslog:syslog_target]
type = udp
server = 111.222.333.444:514

props.conf
[source::/path/of/myfile/*filename.log]
TRANSFORMS-syslog_forward = syslog_forward_rule

transforms.conf
[syslog_forward_rule]
REGEX = www\.mywebsite\.com
DEST_KEY = _SYSLOG_ROUTING
FORMAT = syslog_target&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Edoardo&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 15:56:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-to-a-third-party-syslog-server-based-on-both-host/m-p/522697#M88278</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2020-10-02T15:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarding to a third party syslog server based on both host, sourcetype and regex</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-to-a-third-party-syslog-server-based-on-both-host/m-p/522729#M88285</link>
      <description>&lt;P&gt;I don’t think you can make use of host and source combinations in single props stanza.&lt;/P&gt;&lt;P&gt;if source specified in props matches events coming from those hosts you want to include and event contains host value then you can modify your regex in transforms to identify events you want to forward to syslog.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 18:56:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-to-a-third-party-syslog-server-based-on-both-host/m-p/522729#M88285</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-10-02T18:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarding to a third party syslog server based on both host, sourcetype and regex</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-to-a-third-party-syslog-server-based-on-both-host/m-p/524450#M88531</link>
      <description>&lt;P&gt;@&lt;SPAN&gt;thambisetty&amp;nbsp;Thanks for your feedback.&lt;/SPAN&gt;&lt;BR /&gt;Basically there is no way to use host sourcetype and regex all together, unless you have the host:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;in the event itself (that is not our case) --&amp;gt; so that you can filter with the REGEX in the transforms.conf&lt;/LI&gt;&lt;LI&gt;in the path name (that is not our case as well) --&amp;gt; so that&amp;nbsp;you can directly filter in source stanza in props.conf&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 13 Oct 2020 15:34:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-to-a-third-party-syslog-server-based-on-both-host/m-p/524450#M88531</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2020-10-13T15:34:40Z</dc:date>
    </item>
  </channel>
</rss>

