<?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: How to create regex that will pick up on a value contained in [ ] brackets? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-regex-that-will-pick-up-on-a-value-contained-in/m-p/621127#M215921</link>
    <description>&lt;P&gt;That worked perfectly, thanks! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2022 21:15:49 GMT</pubDate>
    <dc:creator>Splunky21</dc:creator>
    <dc:date>2022-11-16T21:15:49Z</dc:date>
    <item>
      <title>How to create regex that will pick up on a value contained in [ ] brackets?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-regex-that-will-pick-up-on-a-value-contained-in/m-p/621121#M215919</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I'm attempting to develop a regex that will pick up on a value contained in [ ] brackets (see below):&lt;/P&gt;
&lt;P&gt;Log value&lt;/P&gt;
&lt;P&gt;year number time:time:time 00 AAA0 Blah Blah Blah Blah Blah: [X] to [Y] (4 possible variables X,Y,A,B)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to alert every time the * to [ bracketed value] changes. Trying to make a regex to pick out these bracketed values. Any help is appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 18:59:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-regex-that-will-pick-up-on-a-value-contained-in/m-p/621121#M215919</guid>
      <dc:creator>Splunky21</dc:creator>
      <dc:date>2022-11-16T18:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to create regex that will pick up on a value contained in [ ] brackets?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-regex-that-will-pick-up-on-a-value-contained-in/m-p/621124#M215920</link>
      <description>&lt;P&gt;Try this command to extract both values within brackets.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\[(?&amp;lt;bracket1&amp;gt;[^\]]+)\] to \[(?&amp;lt;bracket2&amp;gt;[^\]]+)"&lt;/LI-CODE&gt;&lt;P&gt;It looks for the first bracket, extracts everything up to the second into field 'bracket1', then it looks for a closing bracket followed by " to " and a third bracket.&amp;nbsp; Everything up to the fourth bracket is put into field 'bracket2'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 19:39:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-regex-that-will-pick-up-on-a-value-contained-in/m-p/621124#M215920</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-11-16T19:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to create regex that will pick up on a value contained in [ ] brackets?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-regex-that-will-pick-up-on-a-value-contained-in/m-p/621127#M215921</link>
      <description>&lt;P&gt;That worked perfectly, thanks! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 21:15:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-regex-that-will-pick-up-on-a-value-contained-in/m-p/621127#M215921</guid>
      <dc:creator>Splunky21</dc:creator>
      <dc:date>2022-11-16T21:15:49Z</dc:date>
    </item>
  </channel>
</rss>

