<?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: Override source field in the indexers in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Override-source-field-in-the-indexers/m-p/224568#M43953</link>
    <description>&lt;P&gt;I have done everything wrong that it is possible to do wrong; education by scars keeps memory sharp!&lt;/P&gt;</description>
    <pubDate>Tue, 15 Sep 2015 15:53:21 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-09-15T15:53:21Z</dc:date>
    <item>
      <title>Override source field in the indexers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Override-source-field-in-the-indexers/m-p/224564#M43949</link>
      <description>&lt;P&gt;I have configured heavy weight forwarders to get the JMX server data. While forwarding the data to indexers, source field displays the path of those servers. I want to reduce the unwanted strings and override the source field with only server names in it. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="service:jmx:rmi:///jndi/rmi://abcde000001234:1111/jmxrmi"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want the source field to extract &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source =abcde000001234:1111
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried to override the field using props and transforms &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Transforms.conf
[source]
REGEX =(.*)(:\/\/)(.*)(\/jmxrmi)
FORMAT = source::$3
SOURCE_KEY=MetaData:Source
DEST_KEY = MetaData:Source

Props.conf  
[jmx]
REPORT-source = source
SHOULD_LINEMERGE = false
MAX_TIMESTAMP_LOOKAHEAD = 50
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, I am able to extract different field capturing only desired output using inline search. &lt;BR /&gt;
But I want the source field to display only the host name from where data is coming and remove all irrelevant strings. Is there any way to get it?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 12:44:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Override-source-field-in-the-indexers/m-p/224564#M43949</guid>
      <dc:creator>isha_rastogi</dc:creator>
      <dc:date>2015-09-15T12:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Override source field in the indexers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Override-source-field-in-the-indexers/m-p/224565#M43950</link>
      <description>&lt;P&gt;In &lt;CODE&gt;props.conf&lt;/CODE&gt;, change this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REPORT-source = source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRANSFORMS-source = source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then deploy to all Heavy Forwarders and restart all Splunk instances on them.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 15:26:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Override-source-field-in-the-indexers/m-p/224565#M43950</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-15T15:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Override source field in the indexers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Override-source-field-in-the-indexers/m-p/224566#M43951</link>
      <description>&lt;P&gt;Where did you apply the props.conf and transforms.conf?? Heavy forwarders right??&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 15:30:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Override-source-field-in-the-indexers/m-p/224566#M43951</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-15T15:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Override source field in the indexers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Override-source-field-in-the-indexers/m-p/224567#M43952</link>
      <description>&lt;P&gt;You've a great eye in finding these...:)&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 15:43:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Override-source-field-in-the-indexers/m-p/224567#M43952</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-15T15:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Override source field in the indexers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Override-source-field-in-the-indexers/m-p/224568#M43953</link>
      <description>&lt;P&gt;I have done everything wrong that it is possible to do wrong; education by scars keeps memory sharp!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 15:53:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Override-source-field-in-the-indexers/m-p/224568#M43953</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-15T15:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Override source field in the indexers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Override-source-field-in-the-indexers/m-p/224569#M43954</link>
      <description>&lt;P&gt;Already tried replacing Report to transforms and got no success. I want to change the source field in the indexers.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 16:13:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Override-source-field-in-the-indexers/m-p/224569#M43954</guid>
      <dc:creator>isha_rastogi</dc:creator>
      <dc:date>2015-09-15T16:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Override source field in the indexers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Override-source-field-in-the-indexers/m-p/224570#M43955</link>
      <description>&lt;P&gt;Indexed data is immutable; are you checking &lt;EM&gt;new&lt;/EM&gt; events or &lt;EM&gt;old&lt;/EM&gt; events?  Old events cannot be changed.  You can delete it, clear the fishbucket and re-forward it, though.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 16:32:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Override-source-field-in-the-indexers/m-p/224570#M43955</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-15T16:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Override source field in the indexers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Override-source-field-in-the-indexers/m-p/224571#M43956</link>
      <description>&lt;P&gt;It worked on new indexed data. Thanks!!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 17:59:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Override-source-field-in-the-indexers/m-p/224571#M43956</guid>
      <dc:creator>isha_rastogi</dc:creator>
      <dc:date>2015-09-17T17:59:32Z</dc:date>
    </item>
  </channel>
</rss>

