<?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 Why SEDCMD configured in props.conf is working during Data Preview but not during SEARCH? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-SEDCMD-configured-in-props-conf-is-working-during-Data/m-p/124777#M25697</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have configured a SEDCMD in props.conf to remove a few unwanted lines of logs. During data preview, the SEDCMD seems to be working fine and the unwanted lines disappear, but once I accept and start searching data it's as if nothing has been modified.&lt;/P&gt;

&lt;P&gt;Can anyone help please?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Feb 2015 17:21:56 GMT</pubDate>
    <dc:creator>DavidHourani</dc:creator>
    <dc:date>2015-02-02T17:21:56Z</dc:date>
    <item>
      <title>Why SEDCMD configured in props.conf is working during Data Preview but not during SEARCH?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-SEDCMD-configured-in-props-conf-is-working-during-Data/m-p/124777#M25697</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have configured a SEDCMD in props.conf to remove a few unwanted lines of logs. During data preview, the SEDCMD seems to be working fine and the unwanted lines disappear, but once I accept and start searching data it's as if nothing has been modified.&lt;/P&gt;

&lt;P&gt;Can anyone help please?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2015 17:21:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-SEDCMD-configured-in-props-conf-is-working-during-Data/m-p/124777#M25697</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2015-02-02T17:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why SEDCMD configured in props.conf is working during Data Preview but not during SEARCH?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-SEDCMD-configured-in-props-conf-is-working-during-Data/m-p/124778#M25698</link>
      <description>&lt;P&gt;Could you provide your SEDCMD command with some sample data?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2015 18:16:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-SEDCMD-configured-in-props-conf-is-working-during-Data/m-p/124778#M25698</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-02-02T18:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why SEDCMD configured in props.conf is working during Data Preview but not during SEARCH?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-SEDCMD-configured-in-props-conf-is-working-during-Data/m-p/124779#M25699</link>
      <description>&lt;P&gt;Yes of course. &lt;/P&gt;

&lt;P&gt;Here is the SEDCMD:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-&amp;lt;class&amp;gt; = s/^(?!.*\d{4}-\d{2}-\d{2}.*\s).*//g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It's supposed to erase all the lines that don't start with a date e.g.: 2015-03-02&lt;/P&gt;

&lt;P&gt;So data is quite random and some lines start with the date. I only want the lines that start with that to be taken into consideration. &lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2015 10:23:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-SEDCMD-configured-in-props-conf-is-working-during-Data/m-p/124779#M25699</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2015-02-03T10:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why SEDCMD configured in props.conf is working during Data Preview but not during SEARCH?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-SEDCMD-configured-in-props-conf-is-working-during-Data/m-p/124780#M25700</link>
      <description>&lt;P&gt;Hi DavidHourani,&lt;/P&gt;

&lt;P&gt;the &lt;CODE&gt;SEDCMD&lt;/CODE&gt; is only applied at index time, not at search time. See the docs &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-&amp;lt;class&amp;gt; = &amp;lt;sed script&amp;gt;
* Only used at index time.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This means, if the props.conf is applied on a heavy forwarder or an indexer, all new events will be considered. &lt;BR /&gt;
You could also use the route to &lt;CODE&gt;nullQueue&lt;/CODE&gt; approach &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 08:42:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-SEDCMD-configured-in-props-conf-is-working-during-Data/m-p/124780#M25700</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-02-11T08:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why SEDCMD configured in props.conf is working during Data Preview but not during SEARCH?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-SEDCMD-configured-in-props-conf-is-working-during-Data/m-p/124781#M25701</link>
      <description>&lt;P&gt;Thank you for the information MuS. &lt;/P&gt;

&lt;P&gt;The problem I was having occuring was when I am adding data into splunk via the "upload files from my computer" section. &lt;BR /&gt;
So first I drag and drop the file in order to upload it. Then I define the SEDCMD and I can actually see the results filtered in the preview. Once I save and accept the defined sourcetype and then go on to search my data, I find that the SEDCMD that was shown in the preview didn't get applied to the new data that has just been added.&lt;/P&gt;

&lt;P&gt;Splunk only indexes the data once the steps in the data input have been saved and finished right ? If that's the case, the data shown in the preview would still get the SEDCMD applied to them.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 10:45:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-SEDCMD-configured-in-props-conf-is-working-during-Data/m-p/124781#M25701</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2015-02-11T10:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why SEDCMD configured in props.conf is working during Data Preview but not during SEARCH?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-SEDCMD-configured-in-props-conf-is-working-during-Data/m-p/124782#M25702</link>
      <description>&lt;P&gt;I assume, that the file will be indexed at the end of the upload/preview but i must admit I never used it before ... I'm doing it the old fashioned vi edit config files way.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 12:52:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-SEDCMD-configured-in-props-conf-is-working-during-Data/m-p/124782#M25702</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-02-11T12:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why SEDCMD configured in props.conf is working during Data Preview but not during SEARCH?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-SEDCMD-configured-in-props-conf-is-working-during-Data/m-p/124783#M25703</link>
      <description>&lt;P&gt;yeah your way works fine I think, I only get this problem when I input via drag and drop. I guess it might be a visual bug because eventually the logs got filtered as I wanted them to, but I had to delete the index content and re-input a few times before it worked.&lt;/P&gt;

&lt;P&gt;Anyway thanks a lot for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 12:57:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-SEDCMD-configured-in-props-conf-is-working-during-Data/m-p/124783#M25703</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2015-02-11T12:57:52Z</dc:date>
    </item>
  </channel>
</rss>

