<?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 How do I remove STDOUT prefix from log4j on a server.log file? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-STDOUT-prefix-from-log4j-on-a-server-log-file/m-p/237478#M46129</link>
    <description>&lt;P&gt;I've got a log file that has some log4j entries like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2016-05-03 10:32:35,895 INFO  [STDOUT] (http-0.0.0.0-8180-2) 2016-05-03 10:32:35,895 ERROR [com.somewhere.someservice] - Reason : ....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where I'd like the first part of the line removed so Splunk simply sees the second timestamp ERROR part, but not the initial first timestamp INFO [STDOUT] ...part.&lt;/P&gt;

&lt;P&gt;And in the same log file I've got other entries that only have one timestamp, log_level and category part to it like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2016-05-03 09:05:20,783 INFO  [STDOUT] (main) **** something....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2016-05-03 09:05:20,783 ERROR  [com.somewhere.someservice].....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I know I should probably adjust the log4j configuration in the JBoss webapp, but that's not an option, so I'm looking to fix this server side in the props/transforms file.&lt;/P&gt;

&lt;P&gt;Any recommendations or can someone point me in the right direction?&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2016 16:07:29 GMT</pubDate>
    <dc:creator>jefflanier</dc:creator>
    <dc:date>2016-05-03T16:07:29Z</dc:date>
    <item>
      <title>How do I remove STDOUT prefix from log4j on a server.log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-STDOUT-prefix-from-log4j-on-a-server-log-file/m-p/237478#M46129</link>
      <description>&lt;P&gt;I've got a log file that has some log4j entries like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2016-05-03 10:32:35,895 INFO  [STDOUT] (http-0.0.0.0-8180-2) 2016-05-03 10:32:35,895 ERROR [com.somewhere.someservice] - Reason : ....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where I'd like the first part of the line removed so Splunk simply sees the second timestamp ERROR part, but not the initial first timestamp INFO [STDOUT] ...part.&lt;/P&gt;

&lt;P&gt;And in the same log file I've got other entries that only have one timestamp, log_level and category part to it like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2016-05-03 09:05:20,783 INFO  [STDOUT] (main) **** something....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2016-05-03 09:05:20,783 ERROR  [com.somewhere.someservice].....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I know I should probably adjust the log4j configuration in the JBoss webapp, but that's not an option, so I'm looking to fix this server side in the props/transforms file.&lt;/P&gt;

&lt;P&gt;Any recommendations or can someone point me in the right direction?&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 16:07:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-STDOUT-prefix-from-log4j-on-a-server-log-file/m-p/237478#M46129</guid>
      <dc:creator>jefflanier</dc:creator>
      <dc:date>2016-05-03T16:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove STDOUT prefix from log4j on a server.log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-STDOUT-prefix-from-log4j-on-a-server-log-file/m-p/237479#M46130</link>
      <description>&lt;P&gt;You can use SEDCMD to remove unwanted string from your events. Again, it's recommended that you fix this from source.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.9/Data/Anonymizedatausingconfigurationfiles"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.9/Data/Anonymizedatausingconfigurationfiles&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 17:35:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-STDOUT-prefix-from-log4j-on-a-server-log-file/m-p/237479#M46130</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-05-03T17:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove STDOUT prefix from log4j on a server.log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-STDOUT-prefix-from-log4j-on-a-server-log-file/m-p/237480#M46131</link>
      <description>&lt;P&gt;I'm not sure I understand how anonymizing the first part of the log entry is going to help. I don't want it showing up or getting indexed at all.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 18:51:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-STDOUT-prefix-from-log4j-on-a-server-log-file/m-p/237480#M46131</guid>
      <dc:creator>jefflanier</dc:creator>
      <dc:date>2016-05-03T18:51:47Z</dc:date>
    </item>
  </channel>
</rss>

