<?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: need help with forming a regex command for extracting some fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/need-help-with-forming-a-regex-command-for-extracting-some/m-p/462738#M130467</link>
    <description>&lt;P&gt;Hi @s0m073r,&lt;BR /&gt;
ok you can use the first.&lt;BR /&gt;
Please use "_"  instead "-" in the field name.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2020 08:39:09 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-05-27T08:39:09Z</dc:date>
    <item>
      <title>need help with forming a regex command for extracting some fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-with-forming-a-regex-command-for-extracting-some/m-p/462735#M130464</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Can someone please help in getting the field extracted:&lt;/P&gt;

&lt;P&gt;"x-hello-abc":["101.2.10.1, 102.3.4.3, 12.3.45.5"]&lt;/P&gt;

&lt;P&gt;Please help in getting a regex expression to extract this field&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 08:13:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-with-forming-a-regex-command-for-extracting-some/m-p/462735#M130464</guid>
      <dc:creator>s0m073r</dc:creator>
      <dc:date>2020-05-27T08:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: need help with forming a regex command for extracting some fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-with-forming-a-regex-command-for-extracting-some/m-p/462736#M130465</link>
      <description>&lt;P&gt;Hi @s0m073r,&lt;BR /&gt;
let me understand: you want to extract the three IPs or only the first?&lt;BR /&gt;
if all the values, try this regex&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "(?&amp;lt;x_hello_abc&amp;gt;\d+\.\d+\.\d+\.\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that you can test at &lt;A href="https://regex101.com/r/m6WhUh/1"&gt;https://regex101.com/r/m6WhUh/1&lt;/A&gt;&lt;BR /&gt;
if you want only the first, use this regex&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "\"(?&amp;lt;x_hello_abc&amp;gt;\d+\.\d+\.\d+\.\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that you can test at &lt;A href="https://regex101.com/r/m6WhUh/2"&gt;https://regex101.com/r/m6WhUh/2&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 08:24:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-with-forming-a-regex-command-for-extracting-some/m-p/462736#M130465</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-05-27T08:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: need help with forming a regex command for extracting some fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-with-forming-a-regex-command-for-extracting-some/m-p/462737#M130466</link>
      <description>&lt;P&gt;I need to extract all the IP's which come under this field, i need to get field with x_hello_abc that contains all the ips&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:32:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-with-forming-a-regex-command-for-extracting-some/m-p/462737#M130466</guid>
      <dc:creator>s0m073r</dc:creator>
      <dc:date>2020-09-30T05:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: need help with forming a regex command for extracting some fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-with-forming-a-regex-command-for-extracting-some/m-p/462738#M130467</link>
      <description>&lt;P&gt;Hi @s0m073r,&lt;BR /&gt;
ok you can use the first.&lt;BR /&gt;
Please use "_"  instead "-" in the field name.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 08:39:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-with-forming-a-regex-command-for-extracting-some/m-p/462738#M130467</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-05-27T08:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: need help with forming a regex command for extracting some fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-with-forming-a-regex-command-for-extracting-some/m-p/462739#M130468</link>
      <description>&lt;P&gt;thanks for your quick response. i am getting the below error:&lt;BR /&gt;
Error in 'rex' command: Encountered the following error while compiling the regex '(?\d+.\d+.\d+.\d+)': Regex: syntax error in subpattern name (missing terminator).&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 08:44:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-with-forming-a-regex-command-for-extracting-some/m-p/462739#M130468</guid>
      <dc:creator>s0m073r</dc:creator>
      <dc:date>2020-05-27T08:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: need help with forming a regex command for extracting some fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-with-forming-a-regex-command-for-extracting-some/m-p/462740#M130469</link>
      <description>&lt;P&gt;Hi @s0m073r,&lt;BR /&gt;
where do you used the regex: in the rex command, in a field extraction or in a dashboard?&lt;/P&gt;

&lt;P&gt;try at first in the search with the rex command (using the double quotes).&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 09:13:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-with-forming-a-regex-command-for-extracting-some/m-p/462740#M130469</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-05-27T09:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: need help with forming a regex command for extracting some fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-with-forming-a-regex-command-for-extracting-some/m-p/462741#M130470</link>
      <description>&lt;P&gt;i tried with rex "x-hello-abc\":[\"(?[^\"]+)"&lt;/P&gt;

&lt;P&gt;it worked fine for me&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 09:49:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-with-forming-a-regex-command-for-extracting-some/m-p/462741#M130470</guid>
      <dc:creator>s0m073r</dc:creator>
      <dc:date>2020-05-27T09:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: need help with forming a regex command for extracting some fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-with-forming-a-regex-command-for-extracting-some/m-p/462742#M130471</link>
      <description>&lt;P&gt;Ok good!&lt;BR /&gt;
but in this case, you take only the first IP, not the others.&lt;/P&gt;

&lt;P&gt;Please, to share regexes use always the Code Sample button (the one with 101010) otherwise I cannot see your regexes.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 09:53:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-with-forming-a-regex-command-for-extracting-some/m-p/462742#M130471</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-05-27T09:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: need help with forming a regex command for extracting some fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-with-forming-a-regex-command-for-extracting-some/m-p/462743#M130472</link>
      <description>&lt;P&gt;Use erex...&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.3/SearchReference/Erex#Examples"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.3/SearchReference/Erex#Examples&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;...| erex examples="x-hello-abc"&lt;/P&gt;

&lt;P&gt;Then view the regex generated by Splunk via the job inspector.&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 20:11:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-with-forming-a-regex-command-for-extracting-some/m-p/462743#M130472</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2020-05-27T20:11:25Z</dc:date>
    </item>
  </channel>
</rss>

