<?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 not being applied in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/sedcmd-not-being-applied/m-p/38339#M7047</link>
    <description>&lt;P&gt;yep.  every time I make a change, I restart splunk through the manager UI.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Feb 2011 00:23:19 GMT</pubDate>
    <dc:creator>ajs07635</dc:creator>
    <dc:date>2011-02-04T00:23:19Z</dc:date>
    <item>
      <title>sedcmd not being applied</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sedcmd-not-being-applied/m-p/38337#M7045</link>
      <description>&lt;P&gt;I am trying to remove the extra description text that gets appended to windows 2k8 logs using SEDCMD in props.conf. However, I can't seem to get it to work, no matter what i use as my expression.  I am receiving events from a light forwarder on a windows box that is pulling the events using WMI from our domain controllers.  The indexer is actually a linux box.&lt;/P&gt;

&lt;P&gt;This is what I have in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::WMI:WinEventLog:Security]
SEDCMD-remwinstr = s/(?ism)This event is generated.*$//g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Nothing is being removed.  I've tried all kinds of variations on both the stanza name as well as the regular expression itself.  I've tried just [WMI:WinEventLog:Security], [WMI:WinEventLog*], [WMI*], and even the name of one of the hosts: [host::&amp;lt;hostname&amp;gt;]&lt;/P&gt;

&lt;P&gt;I've also tried different variations of the regex.  Even something like this doesn't do any replacement:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-remwinstr = s/(?ism)This/That/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried with and without (single or double) quotes around the entire part after the = as well.  Thoughts?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2011 23:20:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sedcmd-not-being-applied/m-p/38337#M7045</guid>
      <dc:creator>ajs07635</dc:creator>
      <dc:date>2011-02-03T23:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: sedcmd not being applied</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sedcmd-not-being-applied/m-p/38338#M7046</link>
      <description>&lt;P&gt;Have you restarted Splunk after putting your SEDCMD stanza in place?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2011 00:15:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sedcmd-not-being-applied/m-p/38338#M7046</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2011-02-04T00:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: sedcmd not being applied</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sedcmd-not-being-applied/m-p/38339#M7047</link>
      <description>&lt;P&gt;yep.  every time I make a change, I restart splunk through the manager UI.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2011 00:23:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sedcmd-not-being-applied/m-p/38339#M7047</guid>
      <dc:creator>ajs07635</dc:creator>
      <dc:date>2011-02-04T00:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: sedcmd not being applied</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sedcmd-not-being-applied/m-p/38340#M7048</link>
      <description>&lt;P&gt;The problem is that the &lt;CODE&gt;source&lt;/CODE&gt; of &lt;CODE&gt;WMI:WinEventLog:Security&lt;/CODE&gt; is not actually set to &lt;CODE&gt;WMI:WinEventLog:Security&lt;/CODE&gt; at the time that the rule is being matched. There is in fact a TRANSFORM that occurs at index time that sets the source to the value you see. Since it's not yet set, the &lt;CODE&gt;[source::]&lt;/CODE&gt; stanza rule you have does not match against the data.&lt;/P&gt;

&lt;P&gt;You'd actually a stanza to match against sourcetype &lt;CODE&gt;[wmi]&lt;/CODE&gt; to have it take effect. The problem here is that this will hit &lt;EM&gt;all&lt;/EM&gt; WMI data, not just the Security Windows Event Log. That might be okay, though there will be a (small) performance cost.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2011 04:58:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sedcmd-not-being-applied/m-p/38340#M7048</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-02-04T04:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: sedcmd not being applied</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sedcmd-not-being-applied/m-p/38341#M7049</link>
      <description>&lt;P&gt;That worked.  I will have to watch the performance as we will be looking at several million events a day just from all the DCs.  Is it not possible to specify a sourcetype of [wmi:wineventlog:security] as that is what is shown in the search results, or is the sourcetype changed via a transform as well?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2011 05:36:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sedcmd-not-being-applied/m-p/38341#M7049</guid>
      <dc:creator>ajs07635</dc:creator>
      <dc:date>2011-02-04T05:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: sedcmd not being applied</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sedcmd-not-being-applied/m-p/38342#M7050</link>
      <description>&lt;P&gt;Same problem with sourcetype I'm afraid. It is transformed at the same time as source. On the other hand, several million events per day isn't that much for a standard Splunk server to handle.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2011 09:29:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sedcmd-not-being-applied/m-p/38342#M7050</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-02-04T09:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: sedcmd not being applied</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sedcmd-not-being-applied/m-p/38343#M7051</link>
      <description>&lt;P&gt;Just came across this post. Is there a ref somewhere for what the initial source/sourcetypes are? Can I find it in a forwarder log?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2014 00:04:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sedcmd-not-being-applied/m-p/38343#M7051</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2014-03-06T00:04:12Z</dc:date>
    </item>
  </channel>
</rss>

