<?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: How to change host with props.conf and transforms.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-host-with-props-conf-and-transforms-conf/m-p/588793#M103309</link>
    <description>&lt;P&gt;I got it to work.&amp;nbsp; The problem was props.conf.&amp;nbsp; I had to not use a wildcard in the sourcetype.&lt;/P&gt;&lt;P&gt;This is what is working for me.&lt;/P&gt;&lt;P&gt;props.conf:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[rubrik:archivebandwidth]&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[rubrik:archiveusage]&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[rubrik:clusteriostats]&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[rubrik:eventfeed]&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[rubrik:mvsummary]&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[rubrik:nodeiostats]&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[rubrik:nodestats]&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[rubrik:orgcapacityreport]&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[rubrik:runwayremaining]&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[rubrik:storagesummary]&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;/P&gt;&lt;P&gt;transforms.conf:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[hostoverride]&lt;BR /&gt;DEST_KEY = MetaData:Host&lt;BR /&gt;REGEX = \"clusterName\":\s\"([a-zA-Z-_]+)\"&lt;BR /&gt;FORMAT = host::$1&lt;/P&gt;</description>
    <pubDate>Fri, 11 Mar 2022 18:36:05 GMT</pubDate>
    <dc:creator>ilhwan</dc:creator>
    <dc:date>2022-03-11T18:36:05Z</dc:date>
    <item>
      <title>How to change host with props.conf and transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-host-with-props-conf-and-transforms-conf/m-p/588295#M103270</link>
      <description>&lt;P&gt;I have an add-on running on a heavy forwarder that is using the name of the HF as the&amp;nbsp; host.&amp;nbsp; I'm trying to change the host to something&amp;nbsp; more useful.&amp;nbsp; All of the events are of the sourcetype rubrik:*.&lt;/P&gt;
&lt;P&gt;Here is a sample event:&lt;/P&gt;
&lt;P&gt;{"_time": "2022-03-07T23:31:00.000Z", "clusterName": "my-host", "locationId": "XXXmaskedXXX", "locationName": "XXXmaskedXXX", "type": "Outgoing", "value": 0}&lt;/P&gt;
&lt;P&gt;I would like to use "my-host" as the host.&amp;nbsp; This is what I'm trying with no success.&lt;/P&gt;
&lt;P&gt;props.conf:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;[rubrik:*]&lt;BR /&gt;TRANSFORMS-myhost = hostoverride&lt;/P&gt;
&lt;P&gt;transforms.conf:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;[hostoverride]&lt;BR /&gt;DEST_KEY = MetaData:Host&lt;BR /&gt;REGEX = \"clusterName\"\:\s\"(.+)\".+&lt;BR /&gt;FORMAT = host::$1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 19:08:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-host-with-props-conf-and-transforms-conf/m-p/588295#M103270</guid>
      <dc:creator>ilhwan</dc:creator>
      <dc:date>2022-03-09T19:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to change host with props.conf and transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-host-with-props-conf-and-transforms-conf/m-p/588347#M103273</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/32920"&gt;@ilhwan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;only one question: where do you located props and transforms?&lt;/P&gt;&lt;P&gt;In your case they must located in the Heavy Forwarder.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 07:39:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-host-with-props-conf-and-transforms-conf/m-p/588347#M103273</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-03-10T07:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to change host with props.conf and transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-host-with-props-conf-and-transforms-conf/m-p/588487#M103294</link>
      <description>&lt;P&gt;Yes, it's on the HF that has the add-on.&amp;nbsp; It's in the local directory.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 19:44:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-host-with-props-conf-and-transforms-conf/m-p/588487#M103294</guid>
      <dc:creator>ilhwan</dc:creator>
      <dc:date>2022-03-10T19:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to change host with props.conf and transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-host-with-props-conf-and-transforms-conf/m-p/588534#M103300</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/32920"&gt;@ilhwan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the regex you used in transforms.conf isn't correct, please try&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;\"clusterName\"\:\s\"([^\"]+)\".+&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/Tt1gyI/1" target="_blank"&gt;https://regex101.com/r/Tt1gyI/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 07:25:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-host-with-props-conf-and-transforms-conf/m-p/588534#M103300</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-03-11T07:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to change host with props.conf and transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-host-with-props-conf-and-transforms-conf/m-p/588784#M103307</link>
      <description>&lt;P&gt;That captures the entire rest of the line instead of just the field I'm interested in.&amp;nbsp; This is what I'm trying now:&lt;/P&gt;&lt;P&gt;[hostoverride]&lt;BR /&gt;DEST_KEY = MetaData:Host&lt;BR /&gt;REGEX = \"clusterName\":\s\"([a-zA-Z-_]+)\"&lt;BR /&gt;FORMAT = host::$1&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 18:09:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-host-with-props-conf-and-transforms-conf/m-p/588784#M103307</guid>
      <dc:creator>ilhwan</dc:creator>
      <dc:date>2022-03-11T18:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to change host with props.conf and transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-host-with-props-conf-and-transforms-conf/m-p/588793#M103309</link>
      <description>&lt;P&gt;I got it to work.&amp;nbsp; The problem was props.conf.&amp;nbsp; I had to not use a wildcard in the sourcetype.&lt;/P&gt;&lt;P&gt;This is what is working for me.&lt;/P&gt;&lt;P&gt;props.conf:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[rubrik:archivebandwidth]&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[rubrik:archiveusage]&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[rubrik:clusteriostats]&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[rubrik:eventfeed]&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[rubrik:mvsummary]&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[rubrik:nodeiostats]&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[rubrik:nodestats]&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[rubrik:orgcapacityreport]&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[rubrik:runwayremaining]&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[rubrik:storagesummary]&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;/P&gt;&lt;P&gt;transforms.conf:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[hostoverride]&lt;BR /&gt;DEST_KEY = MetaData:Host&lt;BR /&gt;REGEX = \"clusterName\":\s\"([a-zA-Z-_]+)\"&lt;BR /&gt;FORMAT = host::$1&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 18:36:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-host-with-props-conf-and-transforms-conf/m-p/588793#M103309</guid>
      <dc:creator>ilhwan</dc:creator>
      <dc:date>2022-03-11T18:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to change host with props.conf and transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-host-with-props-conf-and-transforms-conf/m-p/588826#M103312</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/32920"&gt;@ilhwan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2022 06:33:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-host-with-props-conf-and-transforms-conf/m-p/588826#M103312</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-03-12T06:33:54Z</dc:date>
    </item>
  </channel>
</rss>

