<?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: issue in rex query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/issue-in-rex-query/m-p/384229#M173002</link>
    <description>&lt;P&gt;Hi @roopeshetty&lt;/P&gt;

&lt;P&gt;Try with&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;^(?P&amp;lt;ServerName&amp;gt;.*);\d
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 15 Feb 2019 13:14:04 GMT</pubDate>
    <dc:creator>vnravikumar</dc:creator>
    <dc:date>2019-02-15T13:14:04Z</dc:date>
    <item>
      <title>issue in rex query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/issue-in-rex-query/m-p/384227#M173000</link>
      <description>&lt;P&gt;Hi Guys,&lt;BR /&gt;
I have a log as below;&lt;/P&gt;

&lt;P&gt;server1;443 status= running.&lt;BR /&gt;
server2;443 status= running.&lt;BR /&gt;
server3;443 status= running.&lt;BR /&gt;
server4;443 status= running.&lt;/P&gt;

&lt;P&gt;In this I need to create a field by name “ServerName” by targeting all server names as its values example server1, server2, server3 etc.&lt;/P&gt;

&lt;P&gt;I am running the rex query as below;&lt;BR /&gt;
|rex "(?.*);443"&lt;/P&gt;

&lt;P&gt;now i am getting the expected result but an additional text lines will be added onto its values as below;&lt;/P&gt;

&lt;P&gt;Message=server1&lt;BR /&gt;
Message=server2&lt;BR /&gt;
Message=server3&lt;BR /&gt;
Message=server4&lt;/P&gt;

&lt;P&gt;Any idea from where this word “Message=” is being added to these values as prefix and how can we remove it?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 07:36:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/issue-in-rex-query/m-p/384227#M173000</guid>
      <dc:creator>roopeshetty</dc:creator>
      <dc:date>2019-02-15T07:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: issue in rex query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/issue-in-rex-query/m-p/384228#M173001</link>
      <description>&lt;P&gt;@roopeshetty ,&lt;/P&gt;

&lt;P&gt;Looks like your group filed was removed from the question. Try to add &lt;CODE&gt;code&lt;/CODE&gt; formatting whenever you add search strings.&lt;/P&gt;

&lt;P&gt;Nevertheless, try this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex "(?&amp;lt;server&amp;gt;.+);443"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Feb 2019 13:11:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/issue-in-rex-query/m-p/384228#M173001</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-02-15T13:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: issue in rex query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/issue-in-rex-query/m-p/384229#M173002</link>
      <description>&lt;P&gt;Hi @roopeshetty&lt;/P&gt;

&lt;P&gt;Try with&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;^(?P&amp;lt;ServerName&amp;gt;.*);\d
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Feb 2019 13:14:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/issue-in-rex-query/m-p/384229#M173002</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-02-15T13:14:04Z</dc:date>
    </item>
  </channel>
</rss>

