<?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 extract string to a field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/extract-string-to-a-field/m-p/385812#M168841</link>
    <description>&lt;P&gt;I have some strings appearing in the events , i want to extract them ,it doesnt have any keyvalue pair &lt;BR /&gt;
sample event :-&lt;BR /&gt;
6/15/18&lt;BR /&gt;
4:53:00.123 PM  420420  1529074380797   2018-06-15 14:53:00.797 10.224.34   -   -   -   -   prod    abc.services        ffffffffdcfb607e-186-16403ef6ffd000 ERROR   ERROR   -   -   -   -   com.data.driver.core.exceptions.NouserAvailableException: All user(s) tried for query failed &lt;/P&gt;

&lt;P&gt;so from the above event I would want to extract  "com.data.driver.core.exceptions.NouserAvailableException"&lt;/P&gt;</description>
    <pubDate>Sun, 17 Jun 2018 20:33:56 GMT</pubDate>
    <dc:creator>navd</dc:creator>
    <dc:date>2018-06-17T20:33:56Z</dc:date>
    <item>
      <title>extract string to a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-string-to-a-field/m-p/385812#M168841</link>
      <description>&lt;P&gt;I have some strings appearing in the events , i want to extract them ,it doesnt have any keyvalue pair &lt;BR /&gt;
sample event :-&lt;BR /&gt;
6/15/18&lt;BR /&gt;
4:53:00.123 PM  420420  1529074380797   2018-06-15 14:53:00.797 10.224.34   -   -   -   -   prod    abc.services        ffffffffdcfb607e-186-16403ef6ffd000 ERROR   ERROR   -   -   -   -   com.data.driver.core.exceptions.NouserAvailableException: All user(s) tried for query failed &lt;/P&gt;

&lt;P&gt;so from the above event I would want to extract  "com.data.driver.core.exceptions.NouserAvailableException"&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jun 2018 20:33:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-string-to-a-field/m-p/385812#M168841</guid>
      <dc:creator>navd</dc:creator>
      <dc:date>2018-06-17T20:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: extract string to a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-string-to-a-field/m-p/385813#M168842</link>
      <description>&lt;P&gt;What other data around it can you rely on to stay the same? Are the dashes before your text static for instance? Did you try the interactive field extractor?&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jun 2018 21:53:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-string-to-a-field/m-p/385813#M168842</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2018-06-17T21:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: extract string to a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-string-to-a-field/m-p/385814#M168843</link>
      <description>&lt;P&gt;Hello @navd&lt;/P&gt;

&lt;P&gt;You may refer to this &lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/7.0.3/Knowledge/ExtractfieldsinteractivelywithIFX"&gt;link&lt;/A&gt; to access the field extractor, &lt;BR /&gt;
Or you can extract fields using regex. See &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.0/Search/Extractfieldswithsearchcommands"&gt;link&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;Also, if the provided sample event is in uniform with the succeeding events, try this query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | rex "\ERROR ERROR - - - - (?&amp;lt;Exception&amp;gt;.*)\:"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope it helps!&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jun 2018 23:01:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-string-to-a-field/m-p/385814#M168843</guid>
      <dc:creator>lloydknight</dc:creator>
      <dc:date>2018-06-17T23:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: extract string to a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-string-to-a-field/m-p/385815#M168844</link>
      <description>&lt;P&gt;if the events are of the same type, you can try this...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval data="6/15/18
4:53:00.123 PM 420420 1529074380797 2018-06-15 14:53:00.797 10.224.34 - - - - prod abc.services ffffffffdcfb607e-186-16403ef6ffd000 ERROR ERROR - - - - com.data.driver.core.exceptions.NouserAvailableException: All user(s) tried for query failed" 
| rename data as _raw 
| rex field=_raw "ERROR\s\-\s\-\s\-\s\-(?P&amp;lt;field_name&amp;gt;[^\:]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Jun 2018 09:12:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-string-to-a-field/m-p/385815#M168844</guid>
      <dc:creator>vinod94</dc:creator>
      <dc:date>2018-06-18T09:12:10Z</dc:date>
    </item>
  </channel>
</rss>

