<?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: Editing logs at index time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Editing-logs-at-index-time/m-p/16357#M2178</link>
    <description>&lt;P&gt;How would one go about setting up a search-time field extraction to offset or ignore the first field?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jun 2010 00:25:01 GMT</pubDate>
    <dc:creator>mawwx3</dc:creator>
    <dc:date>2010-06-29T00:25:01Z</dc:date>
    <item>
      <title>Editing logs at index time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Editing-logs-at-index-time/m-p/16354#M2175</link>
      <description>&lt;P&gt;I have splunk indexing a local file that is being continuously written to and I need the first word in each event to not be indexed so that bluecoat will extract the proper fields.&lt;/P&gt;

&lt;P&gt;Here is an example log:&lt;/P&gt;

&lt;P&gt;Something 2010-06-25 22:09:45 194 123.123.123.123 - - - OBSERVED "none" 0 TUNNELED unknown - ssl 122.122.122.122 443 - - 123.12.12.123 8676 833 - none - - medium *.fubar.com "Sweet Deals"&lt;/P&gt;

&lt;P&gt;I need the "Something" to not be indexed or not show up because it is offsetting the field extractions for the bluecoat app.&lt;/P&gt;

&lt;P&gt;Any comments are appreciated.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2010 22:56:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Editing-logs-at-index-time/m-p/16354#M2175</guid>
      <dc:creator>mawwx3</dc:creator>
      <dc:date>2010-06-28T22:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Editing logs at index time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Editing-logs-at-index-time/m-p/16355#M2176</link>
      <description>&lt;P&gt;You can use the SEDCMD rules in props.conf to do this, something like &lt;CODE&gt;SEDCMD-something = s/^\S+ //&lt;/CODE&gt;, although you might consider instead setting up a slightly different search-time field extraction for these events to offset/ignore the first field.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/4.1.3/Admin/Anonymizedatawithsed" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.1.3/Admin/Anonymizedatawithsed&lt;/A&gt;
&lt;A href="http://www.splunk.com/base/Documentation/4.1.3/Admin/Propsconf" target="test_blank"&gt;http://www.splunk.com/base/Documentation/4.1.3/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2010 23:16:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Editing-logs-at-index-time/m-p/16355#M2176</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-06-28T23:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Editing logs at index time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Editing-logs-at-index-time/m-p/16356#M2177</link>
      <description>&lt;P&gt;I would recommend the search-time extraction change over using SEDCMD in general.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2010 23:17:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Editing-logs-at-index-time/m-p/16356#M2177</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-06-28T23:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Editing logs at index time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Editing-logs-at-index-time/m-p/16357#M2178</link>
      <description>&lt;P&gt;How would one go about setting up a search-time field extraction to offset or ignore the first field?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2010 00:25:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Editing-logs-at-index-time/m-p/16357#M2178</guid>
      <dc:creator>mawwx3</dc:creator>
      <dc:date>2010-06-29T00:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Editing logs at index time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Editing-logs-at-index-time/m-p/16358#M2179</link>
      <description>&lt;P&gt;You would have to find which field extractions were broken and then simply add something like "^\S+ " to the front of them.  These will be in &lt;CODE&gt;props.conf&lt;/CODE&gt;, &lt;CODE&gt;transforms.conf&lt;/CODE&gt; and possibly in searches in the form of &lt;CODE&gt;rex&lt;/CODE&gt; commands.  (So how did you come to the conclusion that your problem was because of and extra field in the front of your data?)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2010 02:38:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Editing-logs-at-index-time/m-p/16358#M2179</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-06-29T02:38:09Z</dc:date>
    </item>
  </channel>
</rss>

