<?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: Props/transforms issue with host extraction and Line breaking in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Props-transforms-issue-with-host-extraction-and-Line-breaking/m-p/307127#M57875</link>
    <description>&lt;P&gt;If your server name is &lt;CODE&gt;test-server&lt;/CODE&gt; then try below config in transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[force_host_for_testdata]
DEST_KEY = MetaData:Host
REGEX = server\:([^\\]+)
FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And you have provided only one sample data so I am not sure about another config but give this a try or provide sample data for regex &lt;CODE&gt;MQ:\s+([^\]+)&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[force_host_for_testdata_1]
DEST_KEY = MetaData:Host
REGEX = MQ\:\s+([^\\]+)
FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 16 Jan 2018 09:40:46 GMT</pubDate>
    <dc:creator>harsmarvania57</dc:creator>
    <dc:date>2018-01-16T09:40:46Z</dc:date>
    <item>
      <title>Props/transforms issue with host extraction and Line breaking</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-transforms-issue-with-host-extraction-and-Line-breaking/m-p/307122#M57870</link>
      <description>&lt;P&gt;Transforms.conf&lt;/P&gt;

&lt;P&gt;[force_host_for_testdata]&lt;BR /&gt;
DEST_KEY = MetaData:Host&lt;BR /&gt;
REGEX = server:([^\]+)&lt;BR /&gt;
FORMAT = host::$1&lt;/P&gt;

&lt;P&gt;[force_host_for_testdata_1]&lt;BR /&gt;
DEST_KEY = MetaData:Host&lt;BR /&gt;
REGEX = MQ:\s+([^\]+)&lt;/P&gt;

&lt;H2&gt;FORMAT = host::$1&lt;/H2&gt;

&lt;P&gt;Props.conf&lt;BR /&gt;
[test_st]&lt;BR /&gt;
TZ = GMT&lt;BR /&gt;
LINE_BREAKER = \d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2}\s+Information:&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TRANSFORMS-force_host_for_testdata = force_host_for_testdata&lt;BR /&gt;
TRANSFORMS-force_host_for_testdata_1 = force_host_for_testdata_1&lt;/P&gt;

&lt;P&gt;This config works on my local machine, but when pushed to heavy forwarders it doesn't work!&lt;/P&gt;

&lt;P&gt;Need suggestions as to what is going wrong? &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:39:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-transforms-issue-with-host-extraction-and-Line-breaking/m-p/307122#M57870</guid>
      <dc:creator>sidhantbhayana</dc:creator>
      <dc:date>2020-09-29T17:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Props/transforms issue with host extraction and Line breaking</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-transforms-issue-with-host-extraction-and-Line-breaking/m-p/307123#M57871</link>
      <description>&lt;P&gt;you need to put props.conf and transforms.conf on indexer not on forwarders. and then restart the indexer.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 07:22:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-transforms-issue-with-host-extraction-and-Line-breaking/m-p/307123#M57871</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-16T07:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Props/transforms issue with host extraction and Line breaking</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-transforms-issue-with-host-extraction-and-Line-breaking/m-p/307124#M57872</link>
      <description>&lt;P&gt;Is &lt;CODE&gt;test_st&lt;/CODE&gt; sourcetype data coming from Heavy Forwarder ? If yes then props.conf and transforms.conf should be on HF and not on IDX.&lt;/P&gt;

&lt;P&gt;Additionally can you please provide some sample data (Please mask any sensitive data).&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 08:53:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-transforms-issue-with-host-extraction-and-Line-breaking/m-p/307124#M57872</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-01-16T08:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Props/transforms issue with host extraction and Line breaking</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-transforms-issue-with-host-extraction-and-Line-breaking/m-p/307125#M57873</link>
      <description>&lt;P&gt;this feed is coming from HF so is there still a need to deploy on indexers&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 08:54:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-transforms-issue-with-host-extraction-and-Line-breaking/m-p/307125#M57873</guid>
      <dc:creator>sidhantbhayana</dc:creator>
      <dc:date>2018-01-16T08:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Props/transforms issue with host extraction and Line breaking</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-transforms-issue-with-host-extraction-and-Line-breaking/m-p/307126#M57874</link>
      <description>&lt;P&gt;It is coming from HF.&lt;/P&gt;

&lt;P&gt;2017-08-02 02:16:15 Information: Process returned code XXX&lt;BR /&gt;
ProcessLauncher\PL (Fast)&lt;BR /&gt;
Command output:&lt;BR /&gt;
Operating system is 32 bit&lt;BR /&gt;
Application is running in 32 bit mode&lt;/P&gt;

&lt;P&gt;SOME PROCESS SUCCESSFULLY EXECUTED - CODE XXX&lt;/P&gt;

&lt;P&gt;Process exited with code XXX&lt;BR /&gt;
Parameters:&lt;BR /&gt;
Test.exe /component:Solution /process:"Test Process" /platform:Data /server:test-server\ABCD,12345 /db:TEST&lt;BR /&gt;
Start: 02 Aug 2017 02:15:31&lt;BR /&gt;
End: 02 Aug 2017 02:16:15&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 08:57:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-transforms-issue-with-host-extraction-and-Line-breaking/m-p/307126#M57874</guid>
      <dc:creator>sidhantbhayana</dc:creator>
      <dc:date>2018-01-16T08:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Props/transforms issue with host extraction and Line breaking</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-transforms-issue-with-host-extraction-and-Line-breaking/m-p/307127#M57875</link>
      <description>&lt;P&gt;If your server name is &lt;CODE&gt;test-server&lt;/CODE&gt; then try below config in transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[force_host_for_testdata]
DEST_KEY = MetaData:Host
REGEX = server\:([^\\]+)
FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And you have provided only one sample data so I am not sure about another config but give this a try or provide sample data for regex &lt;CODE&gt;MQ:\s+([^\]+)&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[force_host_for_testdata_1]
DEST_KEY = MetaData:Host
REGEX = MQ\:\s+([^\\]+)
FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jan 2018 09:40:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-transforms-issue-with-host-extraction-and-Line-breaking/m-p/307127#M57875</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-01-16T09:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Props/transforms issue with host extraction and Line breaking</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-transforms-issue-with-host-extraction-and-Line-breaking/m-p/307128#M57876</link>
      <description>&lt;P&gt;Found it working, thanks&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 06:39:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-transforms-issue-with-host-extraction-and-Line-breaking/m-p/307128#M57876</guid>
      <dc:creator>sidhantbhayana</dc:creator>
      <dc:date>2018-01-31T06:39:08Z</dc:date>
    </item>
  </channel>
</rss>

