<?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: Issue with props.conf and transforms.conf – Port-Based Filtering Not Working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Issue-with-props-conf-and-transforms-conf-Port-Based-Filtering/m-p/743086#M118078</link>
    <description>&lt;P&gt;We are not Splunk Support - we're users like you.&lt;/P&gt;&lt;P&gt;To properly troubleshoot an issue using regular expressions, we need to see some sample (sanitized) data.&amp;nbsp; Currently, I'm concerned that events with "22" in the timestamp will be sent to nullQueue.&lt;/P&gt;&lt;P&gt;The preferred way to specify the index for data is to put the index name in inputs.conf.&amp;nbsp; If the index name is absent from inputs.conf, data will go to the default index.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Mar 2025 13:29:28 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2025-03-31T13:29:28Z</dc:date>
    <item>
      <title>Issue with props.conf and transforms.conf – Port-Based Filtering Not Working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-with-props-conf-and-transforms-conf-Port-Based-Filtering/m-p/743079#M118072</link>
      <description>&lt;P class=""&gt;&lt;STRONG&gt;Dear Splunk Support,&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;I am encountering an issue while configuring Splunk to filter logs based on specific ports (21, 22, 23, 3389) using props.conf and transforms.conf. Despite following the proper configuration steps, the filtering is not working as expected. Below are the details:&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;System Details:&lt;/STRONG&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;Splunk Version: [9.3.2]&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;Deployment Type: Heavy Forwarder&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;Log Source: /opt/log/indexsource/*&lt;/STRONG&gt;&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;Configuration Applied:&lt;/STRONG&gt;&lt;/H3&gt;&lt;H4&gt;&lt;STRONG&gt;props.conf (Located at $SPLUNK_HOME/etc/system/local/props.conf)&lt;/STRONG&gt;&lt;/H4&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;[source::/opt/log/indexsource/*]&lt;BR /&gt;&lt;SPAN class=""&gt;TRANSFORMS-filter_ports = filter_specific_ports&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;H4&gt;&lt;STRONG&gt;transforms.conf (Located at $SPLUNK_HOME/etc/system/local/transforms.conf)&lt;/STRONG&gt;&lt;/H4&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;[filter_specific_ports]&lt;BR /&gt;&lt;SPAN class=""&gt;REGEX = .* (&lt;SPAN class=""&gt;21|&lt;SPAN class=""&gt;22|&lt;SPAN class=""&gt;23|&lt;SPAN class=""&gt;3389) .*&lt;BR /&gt;&lt;SPAN class=""&gt;DEST_KEY = queue&lt;BR /&gt;&lt;SPAN class=""&gt;FORMAT = indexQueue&lt;BR /&gt;&lt;BR /&gt;And&amp;nbsp;trying someways such as:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;H4&gt;&lt;STRONG&gt;transforms.conf:&lt;/STRONG&gt;&lt;/H4&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;[filter_ports]&lt;BR /&gt;REGEX = (21|22|23|3389)&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = indexQueue&lt;BR /&gt;[drop_other_ports]&lt;BR /&gt;REGEX = .&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = nullQueueAnd&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;H4&gt;&lt;STRONG&gt;&lt;BR /&gt;AND&lt;BR /&gt;&lt;BR /&gt;props.conf:&lt;/STRONG&gt;&lt;/H4&gt;&lt;P&gt;[source::your_specific_source]&lt;BR /&gt;TRANSFORMS-filter_ports = allow_ports, drop_other_ports&lt;/P&gt;&lt;H4&gt;&lt;STRONG&gt;transforms.conf:&lt;/STRONG&gt;&lt;/H4&gt;&lt;H4&gt;[allow_ports]&lt;BR /&gt;REGEX = (21|22|23|3389)&lt;BR /&gt;DEST_KEY = _MetaData:Index&lt;BR /&gt;FORMAT = your_index_name&lt;BR /&gt;&lt;BR /&gt;[drop_other_ports]&lt;BR /&gt;REGEX = .&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = nullQueue&lt;/H4&gt;&lt;H3&gt;&lt;STRONG&gt;Issue Observed:&lt;/STRONG&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;The expected behavior is that logs containing these ports should be routed to indexQueue, but they are &lt;STRONG&gt;not being filtered as expected.&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;All logs are still being indexed in the default index.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Checked for syntax errors and restarted Splunk, but the issue persists.&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;Troubleshooting Steps Taken:&lt;/STRONG&gt;&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;Verified Regex: Confirmed that the regex .* (21|22|23|3389) .* correctly matches log lines using regex testing tools.&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;Checked Splunk Logs: Looked for errors in $SPLUNK_HOME/var/log/splunk/splunkd.log but found no related warnings.&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;Restarted Splunk: Restarted the service after configuration changes using splunk restart.&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;Checked Events in Splunk: Ran searches to confirm that logs with these ports were still being indexed.&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;Request for Assistance:&lt;/STRONG&gt;&lt;/H3&gt;&lt;P class=""&gt;Could you please advise on:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Whether there are any syntax issues in my configuration?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;If additional debugging steps are needed?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Alternative methods to ensure only logs containing ports 21, 22, 23, and 3389 are routed correctly?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;Your assistance in resolving this issue would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Namchin Baranzad&lt;BR /&gt;Information Security Analyst&lt;BR /&gt;M Bank&lt;BR /&gt;Email: namchin.b@m-bank.mn&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 09:42:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-with-props-conf-and-transforms-conf-Port-Based-Filtering/m-p/743079#M118072</guid>
      <dc:creator>Namchin_Bar</dc:creator>
      <dc:date>2025-03-31T09:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with props.conf and transforms.conf – Port-Based Filtering Not Working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-with-props-conf-and-transforms-conf-Port-Based-Filtering/m-p/743081#M118074</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/308950"&gt;@Namchin_Bar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am suprised you are getting any data at all because&amp;nbsp;drop_other_ports being second in the list will run AFTER the allow_ports and would set nullQueue for everything. You should set this first in the list and then 'allow_ports' second.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As it is, you're getting all the data which makes me think that neither are actually being applied.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is your source:: value in props.conf definitely correct?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you confirm if you are running these settings on a Universal or Heavy forwarder?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is the data coming from another Splunk forwarder? Is this UF/HF?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt; &lt;STRONG&gt;Did this answer help you? Please help by:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding kudos to show if it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 31 Mar 2025 10:22:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-with-props-conf-and-transforms-conf-Port-Based-Filtering/m-p/743081#M118074</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-03-31T10:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with props.conf and transforms.conf – Port-Based Filtering Not Working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-with-props-conf-and-transforms-conf-Port-Based-Filtering/m-p/743086#M118078</link>
      <description>&lt;P&gt;We are not Splunk Support - we're users like you.&lt;/P&gt;&lt;P&gt;To properly troubleshoot an issue using regular expressions, we need to see some sample (sanitized) data.&amp;nbsp; Currently, I'm concerned that events with "22" in the timestamp will be sent to nullQueue.&lt;/P&gt;&lt;P&gt;The preferred way to specify the index for data is to put the index name in inputs.conf.&amp;nbsp; If the index name is absent from inputs.conf, data will go to the default index.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 13:29:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-with-props-conf-and-transforms-conf-Port-Based-Filtering/m-p/743086#M118078</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-03-31T13:29:28Z</dc:date>
    </item>
  </channel>
</rss>

