<?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: Extract string from VERTICA-MIB::vertHostName = STRING: &amp;quot;vertica-1&amp;quot; in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-string-from-VERTICA-MIB-vertHostName-STRING-quot-vertica/m-p/57066#M13949</link>
    <description>&lt;P&gt;there is a ( missing here...&lt;BR /&gt;
and &amp;gt; missing i think...&lt;/P&gt;

&lt;P&gt;i also checked this&lt;BR /&gt;
((?(&lt;NAME&gt;)yes|VERTICA-MIB::vertHostName\s=\sSTRING:\s\")([^"]+))&lt;/NAME&gt;&lt;/P&gt;

&lt;P&gt;with a regexp tool "Regulator" and it seems to work fine there. &lt;BR /&gt;
at splunk i just add the ?&lt;VERTHOSTNAME&gt; but it keeps returning:&lt;BR /&gt;
STRING: "vertica-1"&lt;/VERTHOSTNAME&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2013 14:29:07 GMT</pubDate>
    <dc:creator>ispdev</dc:creator>
    <dc:date>2013-03-11T14:29:07Z</dc:date>
    <item>
      <title>Extract string from VERTICA-MIB::vertHostName = STRING: "vertica-1"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-string-from-VERTICA-MIB-vertHostName-STRING-quot-vertica/m-p/57064#M13947</link>
      <description>&lt;P&gt;This is the string :&lt;BR /&gt;
VERTICA-MIB::vertHostName = STRING: "vertica-1"&lt;/P&gt;

&lt;P&gt;i'm trying to extract the hostname so added the following at props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EXTRACT-vertHostName = ((?(&amp;lt;name&amp;gt;)yes|VERTICA-MIB::vertHostName\s=\sSTRING:\s\")(?&amp;lt;vertHostName&amp;gt;[^"]+))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which returns:&lt;BR /&gt;
STRING: "vertica-1"&lt;/P&gt;

&lt;P&gt;need to return:&lt;BR /&gt;
vertica-1&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2013 11:23:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-string-from-VERTICA-MIB-vertHostName-STRING-quot-vertica/m-p/57064#M13947</guid>
      <dc:creator>ispdev</dc:creator>
      <dc:date>2013-03-11T11:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Extract string from VERTICA-MIB::vertHostName = STRING: "vertica-1"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-string-from-VERTICA-MIB-vertHostName-STRING-quot-vertica/m-p/57065#M13948</link>
      <description>&lt;P&gt;Your regex is pulling all of the string initially. You have 5 capture groups, only 2 of which are named. Try this.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;EXTRACT-vertHostName = VERTICA-MIB::vertHostName\s*=\s*STRING:\s*"(?&amp;lt;vertHostName)[^"]*)"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2013 13:15:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-string-from-VERTICA-MIB-vertHostName-STRING-quot-vertica/m-p/57065#M13948</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-03-11T13:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Extract string from VERTICA-MIB::vertHostName = STRING: "vertica-1"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-string-from-VERTICA-MIB-vertHostName-STRING-quot-vertica/m-p/57066#M13949</link>
      <description>&lt;P&gt;there is a ( missing here...&lt;BR /&gt;
and &amp;gt; missing i think...&lt;/P&gt;

&lt;P&gt;i also checked this&lt;BR /&gt;
((?(&lt;NAME&gt;)yes|VERTICA-MIB::vertHostName\s=\sSTRING:\s\")([^"]+))&lt;/NAME&gt;&lt;/P&gt;

&lt;P&gt;with a regexp tool "Regulator" and it seems to work fine there. &lt;BR /&gt;
at splunk i just add the ?&lt;VERTHOSTNAME&gt; but it keeps returning:&lt;BR /&gt;
STRING: "vertica-1"&lt;/VERTHOSTNAME&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2013 14:29:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-string-from-VERTICA-MIB-vertHostName-STRING-quot-vertica/m-p/57066#M13949</guid>
      <dc:creator>ispdev</dc:creator>
      <dc:date>2013-03-11T14:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Extract string from VERTICA-MIB::vertHostName = STRING: "vertica-1"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-string-from-VERTICA-MIB-vertHostName-STRING-quot-vertica/m-p/57067#M13950</link>
      <description>&lt;P&gt;OK this works fine on splunk:&lt;BR /&gt;
EXTRACT-vertHostName = .+VERTICA-MIB::vertHostName\s=\sSTRING:\s\"(?&lt;VERTHOSTNAME&gt;[^\"]+)&lt;/VERTHOSTNAME&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2013 07:24:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-string-from-VERTICA-MIB-vertHostName-STRING-quot-vertica/m-p/57067#M13950</guid>
      <dc:creator>ispdev</dc:creator>
      <dc:date>2013-03-13T07:24:54Z</dc:date>
    </item>
  </channel>
</rss>

