<?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: REGEX Help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/REGEX-Help/m-p/461828#M130203</link>
    <description>&lt;P&gt;Hi&lt;BR /&gt;
try this regex&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;^[^\]]*\]\s+\[(?&amp;lt;my_field&amp;gt;[^\]]*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that you can test at &lt;A href="https://regex101.com/r/GCtXSM/1/"&gt;https://regex101.com/r/GCtXSM/1/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2019 16:17:23 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2019-10-16T16:17:23Z</dc:date>
    <item>
      <title>REGEX Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-Help/m-p/461826#M130201</link>
      <description>&lt;P&gt;Trying to pull the value from the 2nd set of brackets [ ] from this log. Some of the data values are blank, some start with a "/" and some are just text/numbers. Struggling to set regex to get the value between the brackets, regardless of what data is in there.&lt;/P&gt;

&lt;P&gt;HELP? Thank You!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2019-10-14 10:25:30,860 [0.16.132.114:8443-78] [/microdc_1]
2019-10-14 10:25:30,854 [0.16.132.114:8443-78] [/microdc_1]
2019-10-14 10:25:30,813 [0.16.132.114:8443-78] [/microdc_1]
2019-10-14 10:25:30,526 [10.16.142.94:8443-75] [TABTHREAD1]
2019-10-14 10:25:30,514 [.16.132.111:8443-146] [/microdc_1]
2019-10-14 10:25:30,467 [.16.136.140:8443-123] [/microdc_2]
2019-10-14 10:25:30,466 [.16.136.140:8443-123] [/microdc_2]
2019-10-14 10:25:30,103 [.16.132.111:8443-146] [/microdc_1]
2019-10-14 10:25:30,097 [.16.132.111:8443-146] [/microdc_1]
2019-10-14 10:25:30,078 [.16.132.111:8443-146] [/microdc_1]
2019-10-14 10:25:29,888 [.16.134.114:8443-128] [/microdc_1]
2019-10-14 10:25:29,883 [.16.134.114:8443-128] [/microdc_1]
2019-10-14 10:25:29,865 [.16.134.114:8443-128] [/microdc_1]
2019-10-14 10:25:29,638 [0.16.130.100:8443-71] [TABTHREAD1]
2019-10-14 10:25:29,594 [10.16.142.97:8443-80] [TABTHREAD2]
2019-10-14 10:25:29,594 [10.16.142.97:8443-80] [TABTHREAD2]
2019-10-14 10:25:29,502 [.16.130.104:8443-144] [TABTHREAD1]
2019-10-14 10:25:29,462 [0.16.134.106:8443-59] [          ]
2019-10-14 10:25:29,337 [0.16.130.100:8443-47] [TABTHREAD1]
2019-10-14 10:25:29,270 [0.16.134.106:8443-59] [TABTHREAD1]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Oct 2019 16:10:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-Help/m-p/461826#M130201</guid>
      <dc:creator>joesrepsolc</dc:creator>
      <dc:date>2019-10-16T16:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-Help/m-p/461827#M130202</link>
      <description>&lt;P&gt;try this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your_index&amp;gt; | rex field=_raw "\-\d+\]\s+\[(?&amp;lt;Field&amp;gt;[^\]]+)\]"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 16:16:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-Help/m-p/461827#M130202</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-10-16T16:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-Help/m-p/461828#M130203</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
try this regex&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;^[^\]]*\]\s+\[(?&amp;lt;my_field&amp;gt;[^\]]*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that you can test at &lt;A href="https://regex101.com/r/GCtXSM/1/"&gt;https://regex101.com/r/GCtXSM/1/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 16:17:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-Help/m-p/461828#M130203</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-10-16T16:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-Help/m-p/461829#M130204</link>
      <description>&lt;P&gt;Try this &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;]\s(\[\/|\[)(?&amp;lt;test&amp;gt;[^\]]+)]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Thanks &lt;BR /&gt;
Anantha.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 16:24:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-Help/m-p/461829#M130204</guid>
      <dc:creator>Anantha123</dc:creator>
      <dc:date>2019-10-16T16:24:57Z</dc:date>
    </item>
  </channel>
</rss>

