<?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 Help with regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-regex/m-p/628220#M218233</link>
    <description>&lt;P&gt;Hi community.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some searches have:&lt;BR /&gt;index="my_index"&lt;BR /&gt;index=my_index&lt;/P&gt;&lt;P&gt;I want to extract a new field named user_index but cannot figure out the regex capture group that may or may not contain quotes around the index name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2023 04:17:12 GMT</pubDate>
    <dc:creator>hank72</dc:creator>
    <dc:date>2023-01-25T04:17:12Z</dc:date>
    <item>
      <title>Help with regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-regex/m-p/628220#M218233</link>
      <description>&lt;P&gt;Hi community.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some searches have:&lt;BR /&gt;index="my_index"&lt;BR /&gt;index=my_index&lt;/P&gt;&lt;P&gt;I want to extract a new field named user_index but cannot figure out the regex capture group that may or may not contain quotes around the index name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 04:17:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-regex/m-p/628220#M218233</guid>
      <dc:creator>hank72</dc:creator>
      <dc:date>2023-01-25T04:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help with regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-regex/m-p/628222#M218234</link>
      <description>&lt;P&gt;I figured it out.&lt;BR /&gt;&lt;BR /&gt;index=(\"|)(?P&amp;lt;user_index&amp;gt;[^ "]+)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 05:50:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-regex/m-p/628222#M218234</guid>
      <dc:creator>hank72</dc:creator>
      <dc:date>2023-01-25T05:50:31Z</dc:date>
    </item>
  </channel>
</rss>

