<?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 UF to send both Hostname and IP Address as metadata. Currently either IP or hostname is supported as host field in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/UF-to-send-both-Hostname-and-IP-Address-as-metadata-Currently/m-p/563735#M10030</link>
    <description>&lt;P&gt;&lt;SPAN&gt;We can have either IP address or hostname for host field, both is not supported yet. Below highlighted config in inputs.conf will force to set host as IP address:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;host = localhost&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;connection_host = ip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;we tried to explore _meta field coming from UF. If we can make that dynamic to support variable, then we can have both IP and hostname.&lt;/P&gt;&lt;P&gt;This would be similar to $decideOnStartup functionality for host field, but more flexible.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Has anyone able to send both IP and Hostname dynamically for indexing through UF?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;$hostname$ will yield hostname.. as used with inputs.conf, it would be&lt;/P&gt;&lt;P&gt;[default]&lt;/P&gt;&lt;P&gt;_meta = splunk_forwarder::$hostname$&lt;/P&gt;</description>
    <pubDate>Wed, 18 Aug 2021 05:02:23 GMT</pubDate>
    <dc:creator>SunilkumarG</dc:creator>
    <dc:date>2021-08-18T05:02:23Z</dc:date>
    <item>
      <title>UF to send both Hostname and IP Address as metadata. Currently either IP or hostname is supported as host field</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/UF-to-send-both-Hostname-and-IP-Address-as-metadata-Currently/m-p/563735#M10030</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We can have either IP address or hostname for host field, both is not supported yet. Below highlighted config in inputs.conf will force to set host as IP address:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;host = localhost&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;connection_host = ip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;we tried to explore _meta field coming from UF. If we can make that dynamic to support variable, then we can have both IP and hostname.&lt;/P&gt;&lt;P&gt;This would be similar to $decideOnStartup functionality for host field, but more flexible.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Has anyone able to send both IP and Hostname dynamically for indexing through UF?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;$hostname$ will yield hostname.. as used with inputs.conf, it would be&lt;/P&gt;&lt;P&gt;[default]&lt;/P&gt;&lt;P&gt;_meta = splunk_forwarder::$hostname$&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 05:02:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/UF-to-send-both-Hostname-and-IP-Address-as-metadata-Currently/m-p/563735#M10030</guid>
      <dc:creator>SunilkumarG</dc:creator>
      <dc:date>2021-08-18T05:02:23Z</dc:date>
    </item>
  </channel>
</rss>

