<?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 Props and transforms hostname override not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Props-and-transforms-hostname-override-not-working/m-p/747626#M118783</link>
    <description>&lt;P&gt;Hi all. Having an issue with hostname override for snmp logs. An issue I’m having is i created this props and transforms to get the agent_hostname from the logs to override the host (syslog011) for these snmp trap logs but it doesn’t seem to have worked. Not sure what the mistake is herE.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TRANSFORMS.CONF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[snmptrapd_kv]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DELIMS - "\n,"&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[snmp_hostname_change]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DEST_KEY-MetaData: : Host&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;REGEX-Agent_Hostname = (•*)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FORMAT-host:: $1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PROPS.CONF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[snmptrapd]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;disabled = false&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LINE BREAKER = ([\r\n]+) Agent_ Address\s=&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MAX TIMESTAMP LOOKAHEAD = 30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NO_BINARY_CHECK - true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SHOULD LINEMERGE = false&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TIME&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_FORMAT = SY-8m-%d 8H:&amp;amp;M: :S&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TIME&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_PREFIX = Datels=\s&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;EXTRACT-node = ^[^\[\n]*\[(?P&amp;lt;node&amp;gt;[^\]]+)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;REPORT-snmptrapd = snmptrapd_kv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TRANSFORMS-snmp_hostname_change = snmp_hostname_change&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jun 2025 15:27:02 GMT</pubDate>
    <dc:creator>ayomotukoya</dc:creator>
    <dc:date>2025-06-06T15:27:02Z</dc:date>
    <item>
      <title>Props and transforms hostname override not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-and-transforms-hostname-override-not-working/m-p/747626#M118783</link>
      <description>&lt;P&gt;Hi all. Having an issue with hostname override for snmp logs. An issue I’m having is i created this props and transforms to get the agent_hostname from the logs to override the host (syslog011) for these snmp trap logs but it doesn’t seem to have worked. Not sure what the mistake is herE.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TRANSFORMS.CONF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[snmptrapd_kv]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DELIMS - "\n,"&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[snmp_hostname_change]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DEST_KEY-MetaData: : Host&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;REGEX-Agent_Hostname = (•*)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FORMAT-host:: $1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PROPS.CONF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[snmptrapd]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;disabled = false&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LINE BREAKER = ([\r\n]+) Agent_ Address\s=&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MAX TIMESTAMP LOOKAHEAD = 30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NO_BINARY_CHECK - true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SHOULD LINEMERGE = false&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TIME&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_FORMAT = SY-8m-%d 8H:&amp;amp;M: :S&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TIME&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_PREFIX = Datels=\s&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;EXTRACT-node = ^[^\[\n]*\[(?P&amp;lt;node&amp;gt;[^\]]+)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;REPORT-snmptrapd = snmptrapd_kv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TRANSFORMS-snmp_hostname_change = snmp_hostname_change&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 15:27:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-and-transforms-hostname-override-not-working/m-p/747626#M118783</guid>
      <dc:creator>ayomotukoya</dc:creator>
      <dc:date>2025-06-06T15:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Props and transforms hostname override not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-and-transforms-hostname-override-not-working/m-p/747628#M118784</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/269906"&gt;@ayomotukoya&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I suppose that the transforms.conf isn't correct:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[snmp_hostname_change]
DEST_KEY = MetaData::Host
REGEX = Agent_Hostname\s*\=\s*(.*)
FORMAT = host::$1&lt;/LI-CODE&gt;&lt;P&gt;I can be more detailed and sure if you could share a sample of your logs.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 15:50:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-and-transforms-hostname-override-not-working/m-p/747628#M118784</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-06-06T15:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Props and transforms hostname override not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-and-transforms-hostname-override-not-working/m-p/747633#M118785</link>
      <description>&lt;P&gt;Please use code block or preformatted paragraphs for config snippets. It greatly improves readability.&lt;/P&gt;&lt;P&gt;And your config's syntax is completely off. If that is your actual config, use&lt;/P&gt;&lt;PRE&gt;splunk btool check&lt;/PRE&gt;&lt;P&gt;to verify your config. If not, please copy-paste your literal settings.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 19:03:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-and-transforms-hostname-override-not-working/m-p/747633#M118785</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-06-06T19:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Props and transforms hostname override not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-and-transforms-hostname-override-not-working/m-p/747652#M118791</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/269906"&gt;@ayomotukoya&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I check which method you are using to ingest the SNMP data? Is it using Splunk Connect for SNMP? (&lt;A href="https://splunk.github.io/splunk-connect-for-snmp/main/" target="_blank"&gt;https://splunk.github.io/splunk-connect-for-snmp/main/&lt;/A&gt;) - If so this sends the data to Splunk with HEC so would require a different approach to this problem.&lt;/P&gt;&lt;P&gt;Or is this monitoring local files which are saved to disk from SNMP? If so, is this on a Universal Forwarder (UF) or heavy forwarder (HF)?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show 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;</description>
      <pubDate>Sat, 07 Jun 2025 23:25:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-and-transforms-hostname-override-not-working/m-p/747652#M118791</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-06-07T23:25:39Z</dc:date>
    </item>
  </channel>
</rss>

