<?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 extract two fields  using regex? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-using-regex/m-p/680532#M232603</link>
    <description>&lt;P&gt;Working&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Mar 2024 12:11:52 GMT</pubDate>
    <dc:creator>karthi2809</dc:creator>
    <dc:date>2024-03-13T12:11:52Z</dc:date>
    <item>
      <title>How to extract two fields  using regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-using-regex/m-p/680525#M232599</link>
      <description>&lt;P&gt;How to extract the two fields from the message ?&lt;/P&gt;&lt;P&gt;In this need to extract after&amp;nbsp;API: START: /v1/expense/extract/demand/&lt;/P&gt;&lt;P&gt;nagl as one field .&lt;/P&gt;&lt;P&gt;demand _con.csv in another field&lt;/P&gt;&lt;P&gt;I am extracting&amp;nbsp;&lt;/P&gt;&lt;P&gt;|rex field=message max_match=0 "API: START: /v1/expense/extract/odemand/ (?&amp;lt;OnDemandFileName&amp;gt;[^\n]\w+\S+)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;API: START: /v1/expense/extract/demand/nagl/demand_con.csv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 11:12:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-using-regex/m-p/680525#M232599</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2024-03-13T11:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract two fields  using regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-using-regex/m-p/680526#M232600</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/205249"&gt;@karthi2809&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if the first field is called app and the second is called&amp;nbsp;&lt;SPAN&gt;OnDemandFileName, you can use this regex:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|rex field=message max_match=0 "API: START: \/v1\/expense\/extract\/demand\/(?&amp;lt;app&amp;gt;[^\/]+)\/(?&amp;lt;OnDemandFileName&amp;gt;.*)"&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/uifAqM/1" target="_blank"&gt;https://regex101.com/r/uifAqM/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 11:41:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-using-regex/m-p/680526#M232600</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-03-13T11:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract two fields  using regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-using-regex/m-p/680527#M232601</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|rex field=message max_match=0 "API: START: /v1/expense/extract/demand/(?&amp;lt;oneField&amp;gt;[^\/]+)\/(?&amp;lt;anotherField&amp;gt;\S+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 13 Mar 2024 11:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-using-regex/m-p/680527#M232601</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-03-13T11:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract two fields  using regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-using-regex/m-p/680532#M232603</link>
      <description>&lt;P&gt;Working&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 12:11:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-using-regex/m-p/680532#M232603</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2024-03-13T12:11:52Z</dc:date>
    </item>
  </channel>
</rss>

