<?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 SC4S routing configuration not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/SC4S-routing-configuration-not-working/m-p/752909#M119528</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get logs from my opnsense FW to go to an index called prod_opnsense but everything I have tried doesn't seem to make a difference and it still ends up in the LASTCHANCE index.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The latest thing I have tried is below but this also does not work,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I added a new port UDP 515 to my env file. I have checked the opnsense device is sending to this port and can see it in TCPDUMP using it and it makes it to the lastchance index so is not being blocked by any firewall rules etc.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SC4S_DEST_SPLUNK_HEC_DEFAULT_URL=https://HF_IP:8088
SC4S_DEST_SPLUNK_HEC_DEFAULT_TOKEN=TOKEN_ID
#Uncomment the following line if using untrusted SSL certificates
SC4S_DEST_SPLUNK_HEC_DEFAULT_TLS_VERIFY=no

#Add additional listening ports
SC4S_LISTEN_OPNSENSE_UDP_PORT=515
SC4S_DEST_GLOBAL_ALTERNATES=d_archive&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added a new logpath file&amp;nbsp;/opt/sc4s/local/config/log_paths/opnsense_515.conf.tmpl&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;filter f_opnsense_515 {
    source(s_src_udp_515);
    # This filter will match the program name "filterlog"
    program("filterlog");
};

# Log statement to process the traffic
log {
    source(s_src_udp_515);
    filter(f_opnsense_515);

    # Set the vendor_product field. This is how SC4S will map the traffic to an index.
    rewrite {
        set("sc4s_vendor_product", "opnsense");
    };

    # Send the processed logs to the Splunk destination
    destination(d_splunks_ops);
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then added the below to&amp;nbsp; /opt/sc4s/local/context/splunk_metadata.csv&lt;/P&gt;&lt;P&gt;opnsense,index,prod_opnsense&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone know why this is not working?&lt;/P&gt;</description>
    <pubDate>Wed, 10 Sep 2025 13:32:22 GMT</pubDate>
    <dc:creator>L_Petch</dc:creator>
    <dc:date>2025-09-10T13:32:22Z</dc:date>
    <item>
      <title>SC4S routing configuration not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SC4S-routing-configuration-not-working/m-p/752909#M119528</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get logs from my opnsense FW to go to an index called prod_opnsense but everything I have tried doesn't seem to make a difference and it still ends up in the LASTCHANCE index.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The latest thing I have tried is below but this also does not work,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I added a new port UDP 515 to my env file. I have checked the opnsense device is sending to this port and can see it in TCPDUMP using it and it makes it to the lastchance index so is not being blocked by any firewall rules etc.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SC4S_DEST_SPLUNK_HEC_DEFAULT_URL=https://HF_IP:8088
SC4S_DEST_SPLUNK_HEC_DEFAULT_TOKEN=TOKEN_ID
#Uncomment the following line if using untrusted SSL certificates
SC4S_DEST_SPLUNK_HEC_DEFAULT_TLS_VERIFY=no

#Add additional listening ports
SC4S_LISTEN_OPNSENSE_UDP_PORT=515
SC4S_DEST_GLOBAL_ALTERNATES=d_archive&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added a new logpath file&amp;nbsp;/opt/sc4s/local/config/log_paths/opnsense_515.conf.tmpl&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;filter f_opnsense_515 {
    source(s_src_udp_515);
    # This filter will match the program name "filterlog"
    program("filterlog");
};

# Log statement to process the traffic
log {
    source(s_src_udp_515);
    filter(f_opnsense_515);

    # Set the vendor_product field. This is how SC4S will map the traffic to an index.
    rewrite {
        set("sc4s_vendor_product", "opnsense");
    };

    # Send the processed logs to the Splunk destination
    destination(d_splunks_ops);
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then added the below to&amp;nbsp; /opt/sc4s/local/context/splunk_metadata.csv&lt;/P&gt;&lt;P&gt;opnsense,index,prod_opnsense&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone know why this is not working?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 13:32:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SC4S-routing-configuration-not-working/m-p/752909#M119528</guid>
      <dc:creator>L_Petch</dc:creator>
      <dc:date>2025-09-10T13:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: SC4S routing configuration not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SC4S-routing-configuration-not-working/m-p/752945#M119529</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260662"&gt;@L_Petch&lt;/a&gt;&amp;nbsp; This seems to be something around parser itself,&lt;BR /&gt;Curious around this line :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;destination(d_splunks_ops)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe you have shared only half parser above...? can you please share all details? specially what does this&amp;nbsp;d_splunks_ops stands for and what is inside that ? You can also raise support case on this matter if needed .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 00:13:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SC4S-routing-configuration-not-working/m-p/752945#M119529</guid>
      <dc:creator>Meett</dc:creator>
      <dc:date>2025-09-11T00:13:07Z</dc:date>
    </item>
  </channel>
</rss>

