<?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 transforms.conf not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-not-working/m-p/582253#M102584</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I have events like this comin from Heavy forwarder&lt;BR /&gt;&lt;BR /&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;geo&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; {"&lt;/SPAN&gt;&lt;SPAN class=""&gt;continent&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class=""&gt;NA&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class=""&gt;country&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class=""&gt;UK&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class=""&gt;city&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class=""&gt;LONDON&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;}, "&lt;/SPAN&gt;&lt;SPAN class=""&gt;hostname&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "xxxx xxx xxxx&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;BR /&gt;&lt;BR /&gt;I have to override the host metadata with the hostname field from the event.&lt;BR /&gt;&lt;BR /&gt;my transforms.conf&lt;BR /&gt;&lt;BR /&gt;[hostoverride]&lt;BR /&gt;SOURCE_KEY = hostname&lt;BR /&gt;REGEX = (.*)&lt;BR /&gt;DEST_KEY = MetaData:Host&lt;BR /&gt;FORMAT = host::$1&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;props.conf&lt;BR /&gt;[sourcetypename]&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In some of the events I am still getting the Heavy forwarder name.&amp;nbsp;&lt;BR /&gt;Thanks for the help in Advance&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jan 2022 13:04:16 GMT</pubDate>
    <dc:creator>prashant_kumar_</dc:creator>
    <dc:date>2022-01-24T13:04:16Z</dc:date>
    <item>
      <title>transforms.conf not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-not-working/m-p/582253#M102584</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have events like this comin from Heavy forwarder&lt;BR /&gt;&lt;BR /&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;geo&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; {"&lt;/SPAN&gt;&lt;SPAN class=""&gt;continent&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class=""&gt;NA&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class=""&gt;country&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class=""&gt;UK&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class=""&gt;city&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class=""&gt;LONDON&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;}, "&lt;/SPAN&gt;&lt;SPAN class=""&gt;hostname&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "xxxx xxx xxxx&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;BR /&gt;&lt;BR /&gt;I have to override the host metadata with the hostname field from the event.&lt;BR /&gt;&lt;BR /&gt;my transforms.conf&lt;BR /&gt;&lt;BR /&gt;[hostoverride]&lt;BR /&gt;SOURCE_KEY = hostname&lt;BR /&gt;REGEX = (.*)&lt;BR /&gt;DEST_KEY = MetaData:Host&lt;BR /&gt;FORMAT = host::$1&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;props.conf&lt;BR /&gt;[sourcetypename]&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;TRANSFORMS-hostoverride = hostoverride&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In some of the events I am still getting the Heavy forwarder name.&amp;nbsp;&lt;BR /&gt;Thanks for the help in Advance&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 13:04:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-not-working/m-p/582253#M102584</guid>
      <dc:creator>prashant_kumar_</dc:creator>
      <dc:date>2022-01-24T13:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-not-working/m-p/582261#M102588</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/50531"&gt;@prashant_kumar_&lt;/a&gt;&amp;nbsp; use this transforms&lt;BR /&gt;&lt;BR /&gt;[hostoverride]&lt;BR /&gt;REGEX = hostname\"\:\"(.*)\"&lt;BR /&gt;DEST_KEY = MetaData:Host&lt;BR /&gt;FORMAT = host::$1&lt;BR /&gt;&lt;BR /&gt;props.conf&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;[override]&lt;BR /&gt;TRANSFORMS-ooo = hostoverride&lt;BR /&gt;INDEXED_EXTRACTIONS = json&lt;BR /&gt;DATETIME_CONFIG = CURRENT&lt;BR /&gt;LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;NO_BINARY_CHECK = true&lt;BR /&gt;disabled = false&lt;BR /&gt;pulldown_type = true&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;my test file&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;{"geo":"NA","city":"UK","country":"London","hostname":"lp5cd8213yt4"}&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a_m_s_0-1643034056054.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17660i05B26288C078FD80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="a_m_s_0-1643034056054.png" alt="a_m_s_0-1643034056054.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 14:21:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-not-working/m-p/582261#M102588</guid>
      <dc:creator>a_m_s</dc:creator>
      <dc:date>2022-01-24T14:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-not-working/m-p/582770#M102681</link>
      <description>&lt;P&gt;Regex was right, due to the size of data the hostname at the end of the events greater than 4096 character were missed and HF name was showing up.&lt;BR /&gt;changes I made in transforms.conf:&lt;BR /&gt;&lt;SPAN&gt;[hostoverride]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;REGEX = hostname\"\:\s\"(.*)\"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DEST_KEY = MetaData:Host&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FORMAT = host::$1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOOKAHEAD = 10000&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;and it worked!!!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 15:08:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-not-working/m-p/582770#M102681</guid>
      <dc:creator>prashant_kumar_</dc:creator>
      <dc:date>2022-01-27T15:08:04Z</dc:date>
    </item>
  </channel>
</rss>

