<?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: Need Help with Regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Regex/m-p/625676#M217475</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252586"&gt;@MrIncredible&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you can use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "facilityAlias\":\"(?&amp;lt;facility&amp;gt;.*)\",\"systemName"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or (better):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "facilityAlias\":\"(?&amp;lt;facility&amp;gt;[^\"]*)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that's more generic and you can test at &lt;A href="https://regex101.com/r/jnbSgk/1" target="_blank"&gt;https://regex101.com/r/jnbSgk/1&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2023 08:25:15 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-01-03T08:25:15Z</dc:date>
    <item>
      <title>Help with Regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Regex/m-p/625668#M217470</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;I have a field "facilityAlias" for which location can be changed in every api log file. I have to extract that field using Regex method. I have tried Regex statement but not getting expected result.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regex statement: rex field=_raw "facilityAlias\":\"(?&amp;lt;facility&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;.*)\","&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;expected result: Parc de Salut Mar Barcelona&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;current result: Parc de Salut Mar Barcelona","systemName":"CMPSB&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample Log file:&lt;/P&gt;
&lt;P&gt;sample log: 2023-01-02 23:36:58,521 [[MuleRuntime].uber.3869: [abcd-message-kdhskhdsk-api].Delete_msg_from_queue.BLOCKING @27fe0275] INFO&amp;nbsp; com.skdhksh.jsdhjshd.hsd.logging.internal.CustomLoggerOperations - {"environment":"stag36rcf_eu-env","applicationName":"abcd-message-kdhskhdsk-api","correlationId":"kshddhks-3o4u-jshd8-aksdbkadkahd","apiProcessingTime":347,"totalProcessingTime":740,"tracePoint":"END","logMessage":"{\n&amp;nbsp; \"url\": \"abcd\",\n&amp;nbsp; \"bucketName\": \"dipeus-data-store\",\n&amp;nbsp; \"s3versionID\": \"shdkshdkshdkshdkshdkshdkjshd\",\n&amp;nbsp; \"s3key\": \"ljdljdlajldj]dsdsd\ksdjksjdksjdksjdksjksjd\ksdjksjd\"\n}","txnMetadata":{"bundleId":"ahsdkhsdh-skjdhshdkshd-skdhshdks-skdhkshd","messageType":"abcd","messageSubType":"kdshdkshdks","facilityAlias":"Parc de Salut Mar Barcelona","systemName":"CMPSB","transactionStartTime":1672702617781,"relatesToPatientMerge":false,"inputPayload":"adhkjshdkshdkshdkshd"},"apiStartTime":"1672702618174"}&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 16:08:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Regex/m-p/625668#M217470</guid>
      <dc:creator>MrIncredible</dc:creator>
      <dc:date>2023-01-03T16:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Regex/m-p/625676#M217475</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252586"&gt;@MrIncredible&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you can use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "facilityAlias\":\"(?&amp;lt;facility&amp;gt;.*)\",\"systemName"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or (better):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "facilityAlias\":\"(?&amp;lt;facility&amp;gt;[^\"]*)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that's more generic and you can test at &lt;A href="https://regex101.com/r/jnbSgk/1" target="_blank"&gt;https://regex101.com/r/jnbSgk/1&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 08:25:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Regex/m-p/625676#M217475</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-01-03T08:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Regex/m-p/625678#M217477</link>
      <description>&lt;P&gt;Many thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;for your quick reply. 2nd option will work as in 1st option i don't want to restrict it with particular postfix.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 09:14:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Regex/m-p/625678#M217477</guid>
      <dc:creator>MrIncredible</dc:creator>
      <dc:date>2023-01-03T09:14:36Z</dc:date>
    </item>
  </channel>
</rss>

