<?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: Is Pre-processing logs necessary? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-Pre-processing-logs-necessary/m-p/79871#M20196</link>
    <description>&lt;P&gt;When you click on an 'X' in yellow in the field extractor does it revise the regex for you and find what you need?  I would try that first.  If that doesn't work, if you post a raw event example i'm sure someone can give you the regex that will work.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jun 2012 17:56:12 GMT</pubDate>
    <dc:creator>sdaniels</dc:creator>
    <dc:date>2012-06-20T17:56:12Z</dc:date>
    <item>
      <title>Is Pre-processing logs necessary?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-Pre-processing-logs-necessary/m-p/79868#M20193</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm having trouble getting Splunk to identify one of the fields in my logs because this field contains a single binary number (so either 0 or 1). Splunk only identifies other zeros and ones in my other fields... My question is, does this mean I have to pre process my logs before inputting them into splunk? Anyone have the same problem? know a fix? MUCH APPRECIATED!!&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://i.imgur.com/iOzUl.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Splunk is identifying the zeros in the timestamp, which I do not want. I want the column circled in green. Open image in new tab to see enlarged image.&lt;/P&gt;

&lt;P&gt;Here's a raw log for example:&lt;/P&gt;

&lt;P&gt;*&lt;EM&gt;**note&lt;/EM&gt;*: I'm having problems with the last column: it's always either 1 or 0&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2011-11-25    09:31:20      198.190.172.123      HEAD      /e.download.com/49/63/4863/64bit.part2.rar       200    266    0      "-"    "tSession Interface"     "DState=""3+0+01KI+0.00+Start+0+0+14645+TransId=2ea4bd87_Guid=8e73b4564dfaace20490_IP=198.190.172.123"""       1468045    -      0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jun 2012 16:27:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-Pre-processing-logs-necessary/m-p/79868#M20193</guid>
      <dc:creator>monicato</dc:creator>
      <dc:date>2012-06-20T16:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is Pre-processing logs necessary?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-Pre-processing-logs-necessary/m-p/79869#M20194</link>
      <description>&lt;P&gt;Can you post an example event from the raw file, so we can picture it better?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2012 16:52:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-Pre-processing-logs-necessary/m-p/79869#M20194</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2012-06-20T16:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is Pre-processing logs necessary?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-Pre-processing-logs-necessary/m-p/79870#M20195</link>
      <description>&lt;P&gt;I just updated my question post with a screenshot&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2012 17:42:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-Pre-processing-logs-necessary/m-p/79870#M20195</guid>
      <dc:creator>monicato</dc:creator>
      <dc:date>2012-06-20T17:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is Pre-processing logs necessary?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-Pre-processing-logs-necessary/m-p/79871#M20196</link>
      <description>&lt;P&gt;When you click on an 'X' in yellow in the field extractor does it revise the regex for you and find what you need?  I would try that first.  If that doesn't work, if you post a raw event example i'm sure someone can give you the regex that will work.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2012 17:56:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-Pre-processing-logs-necessary/m-p/79871#M20196</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-06-20T17:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is Pre-processing logs necessary?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-Pre-processing-logs-necessary/m-p/79872#M20197</link>
      <description>&lt;P&gt;clicking on an "x" in yellow in the field extractor does not revise the regex correctly... : (&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2012 18:43:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-Pre-processing-logs-necessary/m-p/79872#M20197</guid>
      <dc:creator>monicato</dc:creator>
      <dc:date>2012-06-20T18:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is Pre-processing logs necessary?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-Pre-processing-logs-necessary/m-p/79873#M20198</link>
      <description>&lt;P&gt;We need to some raw events to help you in this case and generate the right regex for you.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2012 18:44:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-Pre-processing-logs-necessary/m-p/79873#M20198</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-06-20T18:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is Pre-processing logs necessary?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-Pre-processing-logs-necessary/m-p/79874#M20199</link>
      <description>&lt;P&gt;I just updated post with a raw log&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2012 19:51:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-Pre-processing-logs-necessary/m-p/79874#M20199</guid>
      <dc:creator>monicato</dc:creator>
      <dc:date>2012-06-20T19:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is Pre-processing logs necessary?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-Pre-processing-logs-necessary/m-p/79875#M20200</link>
      <description>&lt;P&gt;No, preprocessing is not necessary! But the Interactive Field Extractor is ultimately a mechanical regular expression generator - it will never be as intelligent as a human who understands the data.&lt;/P&gt;

&lt;P&gt;One solution would be to create the field extraction manually in &lt;STRONG&gt;props.conf&lt;/STRONG&gt;. If you are the Splunk admin, that might be your best choice.&lt;/P&gt;

&lt;P&gt;But you can also put the regular expression directly into the Interactive Field Extractor. Click the Edit button and Splunk will give you a window to edit the regular expression.  The following regular expression picks up the last digit on the line:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?P&amp;lt;FIELDNAME&amp;gt;\d)\s*$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I looked at your screenshot, and I &lt;EM&gt;think&lt;/EM&gt; this is what you want. Let us know if it doesn't work...&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2012 19:55:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-Pre-processing-logs-necessary/m-p/79875#M20200</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-06-20T19:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is Pre-processing logs necessary?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-Pre-processing-logs-necessary/m-p/79876#M20201</link>
      <description>&lt;P&gt;YES that does it! THANK YOU!!! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2012 20:02:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-Pre-processing-logs-necessary/m-p/79876#M20201</guid>
      <dc:creator>monicato</dc:creator>
      <dc:date>2012-06-20T20:02:20Z</dc:date>
    </item>
  </channel>
</rss>

