<?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: How do I extract this field from my sample data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-this-field-from-my-sample-data/m-p/281726#M85011</link>
    <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | rex "PHP message\: (?&amp;lt;PHPError&amp;gt;[^\"]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 26 Oct 2016 19:55:27 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-10-26T19:55:27Z</dc:date>
    <item>
      <title>How do I extract this field from my sample data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-this-field-from-my-sample-data/m-p/281725#M85010</link>
      <description>&lt;P&gt;I want to extract the PHP Message as a field so I can have all the various php error messages:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2016/10/20 21:23:18 [error] 26550#26550: *9254611 FastCGI sent in stderr: "PHP message: PHP Warning:  trim() expects parameter 1 to be string, array given in /var/www/html/xx/xxxx-xx.xxxx.xxx.com/wordpress/wp-includes/option.php on line 247" while reading response header from upstream, client: 0.0.0.00, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://000.0.0.1:9000", host: "xxx.xx.com"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Oct 2016 19:46:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-this-field-from-my-sample-data/m-p/281725#M85010</guid>
      <dc:creator>splgeek</dc:creator>
      <dc:date>2016-10-26T19:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract this field from my sample data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-this-field-from-my-sample-data/m-p/281726#M85011</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | rex "PHP message\: (?&amp;lt;PHPError&amp;gt;[^\"]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Oct 2016 19:55:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-this-field-from-my-sample-data/m-p/281726#M85011</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-10-26T19:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract this field from my sample data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-this-field-from-my-sample-data/m-p/281727#M85012</link>
      <description>&lt;P&gt;thanks&lt;BR /&gt;
that did work&lt;BR /&gt;
so this could not have been possible with the IFX right?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 20:07:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-this-field-from-my-sample-data/m-p/281727#M85012</guid>
      <dc:creator>splgeek</dc:creator>
      <dc:date>2016-10-26T20:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract this field from my sample data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-this-field-from-my-sample-data/m-p/281728#M85013</link>
      <description>&lt;P&gt;I think it would. Be sure to select the whole string that you want to extract OR you can specify your own regex (this one) in the IFX to save it.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 20:33:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-this-field-from-my-sample-data/m-p/281728#M85013</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-10-26T20:33:29Z</dc:date>
    </item>
  </channel>
</rss>

