<?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: Why am I receiving an error in 'rex' command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433524#M123762</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5355i4C719874F3764B0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jul 2018 09:18:59 GMT</pubDate>
    <dc:creator>khairilfirza</dc:creator>
    <dc:date>2018-07-12T09:18:59Z</dc:date>
    <item>
      <title>Why am I receiving an error in 'rex' command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433518#M123756</link>
      <description>&lt;P&gt;Hi team, I want to ask:&lt;BR /&gt;
I cannot do extract new field and its show this error.&lt;/P&gt;

&lt;P&gt;Error in 'rex' command: The regex 'Telco' does not extract anything. It should specify at least one named group. Format: (?...).&lt;/P&gt;

&lt;P&gt;Before this my Telco was display on the selected field, but somehow it missing, and after that I cannot extract a new field.&lt;/P&gt;

&lt;P&gt;Can you help me? Please&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 07:46:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433518#M123756</guid>
      <dc:creator>khairilfirza</dc:creator>
      <dc:date>2018-07-12T07:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I receiving an error in 'rex' command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433519#M123757</link>
      <description>&lt;P&gt;can you provide your regex query using &lt;CODE&gt;101010&lt;/CODE&gt; button so that no special character get escape&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 08:34:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433519#M123757</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-07-12T08:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I receiving an error in 'rex' command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433520#M123758</link>
      <description>&lt;P&gt;can i know where should i put 101010?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 09:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433520#M123758</guid>
      <dc:creator>khairilfirza</dc:creator>
      <dc:date>2018-07-12T09:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I receiving an error in 'rex' command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433521#M123759</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5352i2DD706695D47720F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;once you type your query select the query first and click 1010110 (above) button - like below&lt;BR /&gt;
rex "(?.*)"&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 09:06:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433521#M123759</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-07-12T09:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I receiving an error in 'rex' command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433522#M123760</link>
      <description>&lt;P&gt;I'm assuming your search looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ... | rex "telco"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Like the error message says, you must put in a named capturing group so that Splunk knows what name to give your new field. For example, if you want to call that field "myField", your regex would look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| rex "(?&amp;lt;myField&amp;gt;telco)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Jul 2018 09:07:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433522#M123760</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2018-07-12T09:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I receiving an error in 'rex' command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433523#M123761</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;![* source="/var/log/va-router/vpn/vpn.log" | rex "(?&amp;lt;Telco&amp;gt;telco)"][1]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm sorry, I dont know how to do this one, before this my telco is display on the selected field and interesting field.&lt;/P&gt;

&lt;P&gt;Now I dont how to find the telco.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 09:18:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433523#M123761</guid>
      <dc:creator>khairilfirza</dc:creator>
      <dc:date>2018-07-12T09:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I receiving an error in 'rex' command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433524#M123762</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5355i4C719874F3764B0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 09:18:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433524#M123762</guid>
      <dc:creator>khairilfirza</dc:creator>
      <dc:date>2018-07-12T09:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I receiving an error in 'rex' command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433525#M123763</link>
      <description>&lt;P&gt;So the regex I have there will create a field called Telco with the value 'telco', if the event contains the string telco. This is unlikely to be what you want. Can you perhaps describe your search in more general terms? &lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 09:32:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433525#M123763</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2018-07-12T09:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I receiving an error in 'rex' command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433526#M123764</link>
      <description>&lt;UL&gt;
&lt;LI&gt;source="/var/log/va-router/vpn/vpn.log"&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;This is the search i used for visualize data. In this search usually I got my telco in the field. &lt;BR /&gt;
So the in telco its provide information like Maxis , Digi, and Celcom. &lt;BR /&gt;
So when click on the telco it will display this field. But some how the telco is missing in this field from this search (* source="/var/log/va-router/vpn/vpn.log").&lt;/P&gt;

&lt;P&gt;And because that "telco" field is missing I face the problem to extract the new field and show rex error.&lt;/P&gt;

&lt;P&gt;Hope you understand&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 09:52:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433526#M123764</guid>
      <dc:creator>khairilfirza</dc:creator>
      <dc:date>2018-07-12T09:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I receiving an error in 'rex' command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433527#M123765</link>
      <description>&lt;P&gt;OK - I don't see any of those terms in your data, so I'm not sure if they are a field extraction or a lookup. It may be that someone made a lookup for the data and it has broken somehow. Have you contacted your Splunk admin?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 10:06:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433527#M123765</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2018-07-12T10:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I receiving an error in 'rex' command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433528#M123766</link>
      <description>&lt;P&gt;try   * source="/var/log/va-router/vpn/vpn.log" | rex field=_raw  "(?telco)"  &lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 17:51:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433528#M123766</guid>
      <dc:creator>j_cabanillas</dc:creator>
      <dc:date>2018-07-20T17:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I receiving an error in 'rex' command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433529#M123767</link>
      <description>&lt;P&gt;it display this error:&lt;/P&gt;

&lt;P&gt;Error in 'rex' command: Encountered the following error while compiling the regex '(?telco)': Regex: unrecognized character after (? or (?-&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 02:17:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433529#M123767</guid>
      <dc:creator>khairilfirza</dc:creator>
      <dc:date>2018-07-23T02:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I receiving an error in 'rex' command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433530#M123768</link>
      <description>&lt;P&gt;could you add a log example where the Telco words is in ? &lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 14:24:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433530#M123768</guid>
      <dc:creator>j_cabanillas</dc:creator>
      <dc:date>2018-07-23T14:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I receiving an error in 'rex' command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433531#M123769</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;So the in telco its provide information like Maxis , Digi, and Celcom. So when click on the telco it will display this field. But some how the telco is missing in this field from this search (* source="/var/log/va-router/vpn/vpn.log").&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;SO Maxis, Digi, Celcom are telecomunication service providers  right?  As jplumsdaine22  says , that data is not showing on your logs ,at least not in the one you showed us on the picture. &lt;/P&gt;

&lt;P&gt;If that data is not part of the logs it means there must be a lookup for that data that someone created to associated part of the log to each provider.&lt;/P&gt;

&lt;P&gt;For example: &lt;BR /&gt;
The lookup could associate using VPN-SA01XXXX  to  Digi and VPN-CB01XXXXX  to Celcom. &lt;BR /&gt;
It could also be associated to external IPs, but I don't see external IPs in your logs &lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 15:10:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433531#M123769</guid>
      <dc:creator>j_cabanillas</dc:creator>
      <dc:date>2018-07-23T15:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I receiving an error in 'rex' command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433532#M123770</link>
      <description>&lt;P&gt;I had the same issue and after trying many complex solutions, the simple solution that worked for me is removing the space after field in rex command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw ".+\[(?P&amp;lt;ActionResponseandType&amp;gt;.+)]\s
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Jan 2019 03:29:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-an-error-in-rex-command/m-p/433532#M123770</guid>
      <dc:creator>premraj_vs</dc:creator>
      <dc:date>2019-01-25T03:29:47Z</dc:date>
    </item>
  </channel>
</rss>

