<?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: SEDCMD pattern replacement not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-pattern-replacement-not-working/m-p/45771#M8604</link>
    <description>&lt;P&gt;Note: This will only affect new data being indexed.  Restart Splunk after making the change.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Feb 2011 03:46:39 GMT</pubDate>
    <dc:creator>Ron_Naken</dc:creator>
    <dc:date>2011-02-17T03:46:39Z</dc:date>
    <item>
      <title>SEDCMD pattern replacement not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-pattern-replacement-not-working/m-p/45768#M8601</link>
      <description>&lt;P&gt;My props.conf is as follows. The SEDCMDs seem to be very temperamental&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[server]
MAX_TIMESTAMP_LOOKAHEAD = 0
SHOULD_LINEMERGE = true
BREAK_ONLY_BEFORE = ^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2},\d{3},
TIME_FORMAT = %Y-%m-%d %H:%M:%S
SEDCMD-exception-raised-ignore = s/(Exception raised [^:]*:).*$/\1 INFO REMOVED)/g
SEDCMD-remove-extra-timestamp = s/(ERROR \[STDERR\]) \d{2}-\w{3}-\d{4} \d{2}:\d{2}:\d{2}/\1 DATE REMOVED/g
REPORT-server = jboss-server-extractions
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And then I get (some values changed)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2011-02-16 16:11:24,336, ERROR [STDERR] com.company.Exception: attempt to retrieve money as wrong currency.
    (Exception raised at address: server8.production/10.0.0.8); 
    (Exception raised on date: INFO REMOVED)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So the SEDCMD-exception-raised-ignore is working on the second 'Exception raised' line but not the first. Earlier today I was struggling to get it to work at all, and even now, other very similar results aren't being processed:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2011-02-16 17:23:35,882, ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[zzzaction]] Servlet.service() for servlet zzzaction threw exception
com.company.Exception: com.company.Exception: attempt to retrieve money as wrong currency.  
    (Exception raised at address: server3.production/10.0.0.3); 
    (Exception raised on date: Wed Feb 16 17:23:35 UTC 2011);; 
    (Exception raised at address: server3.production/10.0.0.3); 
    (Exception raised on date: Wed Feb 16 17:23:35 UTC 2011);
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help in getting to the bottom of why this is so temperamental and how to make it work more regularly would be gratefully received!&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2011 01:31:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-pattern-replacement-not-working/m-p/45768#M8601</guid>
      <dc:creator>willthames</dc:creator>
      <dc:date>2011-02-17T01:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD pattern replacement not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-pattern-replacement-not-working/m-p/45769#M8602</link>
      <description>&lt;P&gt;This makes me wonder about sedcmd with repeat match behavior, and multiline events.  Hopefully will come back with something useful later.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2011 01:56:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-pattern-replacement-not-working/m-p/45769#M8602</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2011-02-17T01:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD pattern replacement not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-pattern-replacement-not-working/m-p/45770#M8603</link>
      <description>&lt;P&gt;I haven't run into any issue with SEDCMD. Your RegEx for &lt;STRONG&gt;SEDCMD-exception-raised-ignore&lt;/STRONG&gt; will not work correctly.  Try it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-exception-raised-ignore = s/(Exception raised [^:]*:)\V*/\1 INFO REMOVED)/g
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Feb 2011 02:50:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-pattern-replacement-not-working/m-p/45770#M8603</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-17T02:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD pattern replacement not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-pattern-replacement-not-working/m-p/45771#M8604</link>
      <description>&lt;P&gt;Note: This will only affect new data being indexed.  Restart Splunk after making the change.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2011 03:46:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-pattern-replacement-not-working/m-p/45771#M8604</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-17T03:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD pattern replacement not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-pattern-replacement-not-working/m-p/45772#M8605</link>
      <description>&lt;P&gt;Ok, so that's because the SEDCMD is run against the event, not the line? I've given the \V a try and will see how it performs next time the event occurs. &lt;/P&gt;

&lt;P&gt;Thanks for the answer, and good to know that SEDCMD is usually reliable!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2011 18:31:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-pattern-replacement-not-working/m-p/45772#M8605</guid>
      <dc:creator>willthames</dc:creator>
      <dc:date>2011-02-17T18:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD pattern replacement not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-pattern-replacement-not-working/m-p/45773#M8606</link>
      <description>&lt;P&gt;Just checked the resultset now and it works a treat&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2011 20:39:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-pattern-replacement-not-working/m-p/45773#M8606</guid>
      <dc:creator>willthames</dc:creator>
      <dc:date>2011-02-17T20:39:24Z</dc:date>
    </item>
  </channel>
</rss>

