<?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: Field extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/18029#M2566</link>
    <description>&lt;P&gt;i just want to extract a word "Error" from msg field and keep it in a calculated field.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Apr 2013 11:52:44 GMT</pubDate>
    <dc:creator>ChhayaV</dc:creator>
    <dc:date>2013-04-29T11:52:44Z</dc:date>
    <item>
      <title>Field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/18027#M2564</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;

&lt;P&gt;I want to extract a particular word and add it to a calculated field from a message field i have a share point server log&lt;/P&gt;

&lt;P&gt;sample entries are&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;04/02/2013 00:41:51.82  w3wp.exe (0x2324)                           0x1D5C  SharePoint Foundation           General                         8e2r    Medium      Possible mismatch between the reported error with code = 0x81070504 and message: "There is no Web named "/IndiaAccountsCommunity/IndiaCommunityAccounts/Future Generali/_vti_bin/lists.asmx"." and the returned error with code 0x80070002. 104159c7-12e1-44b6-b4f5-5141ddaf3ea1
04/02/2013 00:35:32.94  OWSTIMER.EXE (0x0758)                       0x2CB8  SharePoint Foundation           Usage Infrastructure            bjb7    High        Call to WSS ImportEntries method with '65' entries failed for usage definition 'Microsoft.SharePoint.Administration.SPRequestUsageDefinition'. Entries will now be redirected to ULS logs (level=Verbose). Error message: An entry with the same key already exists.    3bb778c7-24f3-4d54-abcb-20069b71d953
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it can be an error or ERROR or Error everything should be extracted as a single field&lt;BR /&gt;
tried with regex,rex and eval match not able to do it.&lt;/P&gt;

&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2013 09:17:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/18027#M2564</guid>
      <dc:creator>ChhayaV</dc:creator>
      <dc:date>2013-04-28T09:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/18028#M2565</link>
      <description>&lt;P&gt;It is not clear &lt;EM&gt;what&lt;/EM&gt; you want to extract. Or how you wish to use/present the results.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;regex&lt;/CODE&gt; is used for regex-based filtering of events, not for extraction of fields&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;eval&lt;/CODE&gt; requires that the fields you wish to operate on already exists.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;rex&lt;/CODE&gt; is probably what you want (initially).&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2013 12:42:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/18028#M2565</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-04-28T12:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/18029#M2566</link>
      <description>&lt;P&gt;i just want to extract a word "Error" from msg field and keep it in a calculated field.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2013 11:52:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/18029#M2566</guid>
      <dc:creator>ChhayaV</dc:creator>
      <dc:date>2013-04-29T11:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/18030#M2567</link>
      <description>&lt;P&gt;What do you mean by calculated in this sense? A field is a field, regardless of how it was created. What calculated field are you talking about, and how do you mean that the error should be "added"?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2013 12:39:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/18030#M2567</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-04-29T12:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/18031#M2568</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;... | eval error=if(match(_raw,"(?i)ERROR"),"error", "OK") | table error _raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Will create a field called error that contains either "error" or "OK" depending if the word "error" is anywhere in the message. This is NOT case sensitive.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2013 12:53:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/18031#M2568</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-04-29T12:53:18Z</dc:date>
    </item>
  </channel>
</rss>

