<?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 Getting data out of an event with a regular expression in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Getting-data-out-of-an-event-with-a-regular-expression/m-p/523233#M147578</link>
    <description>&lt;P&gt;I am trying to figure out how to get data out of the event and into a field. I need to get all the data in brackets.&lt;/P&gt;&lt;P&gt;Sample data:&lt;/P&gt;&lt;P&gt;Run,jump,fly[walk]dog/cat&lt;/P&gt;&lt;P&gt;File storage ,[app - run] development&lt;/P&gt;&lt;P&gt;I want the result put into a new field and look like this:&lt;/P&gt;&lt;P&gt;walk&lt;/P&gt;&lt;P&gt;app - run&lt;/P&gt;</description>
    <pubDate>Tue, 06 Oct 2020 16:01:40 GMT</pubDate>
    <dc:creator>MattPainting</dc:creator>
    <dc:date>2020-10-06T16:01:40Z</dc:date>
    <item>
      <title>Getting data out of an event with a regular expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-data-out-of-an-event-with-a-regular-expression/m-p/523233#M147578</link>
      <description>&lt;P&gt;I am trying to figure out how to get data out of the event and into a field. I need to get all the data in brackets.&lt;/P&gt;&lt;P&gt;Sample data:&lt;/P&gt;&lt;P&gt;Run,jump,fly[walk]dog/cat&lt;/P&gt;&lt;P&gt;File storage ,[app - run] development&lt;/P&gt;&lt;P&gt;I want the result put into a new field and look like this:&lt;/P&gt;&lt;P&gt;walk&lt;/P&gt;&lt;P&gt;app - run&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 16:01:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-data-out-of-an-event-with-a-regular-expression/m-p/523233#M147578</guid>
      <dc:creator>MattPainting</dc:creator>
      <dc:date>2020-10-06T16:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Getting data out of an event with a regular expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-data-out-of-an-event-with-a-regular-expression/m-p/523234#M147579</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "\[(?&amp;lt;result&amp;gt;[^\]]+)"&lt;/LI-CODE&gt;&lt;P&gt;use max_match=0 if there is more than one bracketed result in an event&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 16:02:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-data-out-of-an-event-with-a-regular-expression/m-p/523234#M147579</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-06T16:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Getting data out of an event with a regular expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-data-out-of-an-event-with-a-regular-expression/m-p/523236#M147580</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227191"&gt;@MattPainting&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you want to extarct a field from a log, I hint to use the guided self extractor.&lt;/P&gt;&lt;P&gt;Anyway, using a regex, you can extract the value between square parenthesis putting it into a field:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\[(?&amp;lt;my_field&amp;gt;[^\]]+)"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 16:04:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-data-out-of-an-event-with-a-regular-expression/m-p/523236#M147580</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-06T16:04:26Z</dc:date>
    </item>
  </channel>
</rss>

