<?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: regular expressions - field extractions in Splunk Cloud Platform</title>
    <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-extract-regular-expressions/m-p/606844#M1680</link>
    <description>&lt;P&gt;You can extract the field at search-time using the rex command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "RequestUTCDateTime\\\":\\\"(?&amp;lt;RequestUTCDateTime&amp;gt;[^\\\"]+)"&lt;/LI-CODE&gt;&lt;P&gt;Or it can be extracted automatically using an EXTRACT setting in props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EXTRACT-RequestUTCDateTime = RequestUTCDateTime":"(?&amp;lt;RequestUTCDateTime&amp;gt;[^"]+)&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 25 Jul 2022 13:03:34 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-07-25T13:03:34Z</dc:date>
    <item>
      <title>How to extract regular expressions?</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-extract-regular-expressions/m-p/606829#M1679</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;Need some help to extract regular expressions.&lt;/P&gt;
&lt;P&gt;I have a set of unstructured logs . Part of the log is as shown below:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;RequestUTCDateTime&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;2022-07-25T11:19:29.0106873Z&lt;/SPAN&gt;&lt;SPAN&gt;"}&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How would one extract &lt;SPAN class=""&gt;&lt;U&gt;2022-07-25T11:19:29.0106873Z&lt;/U&gt;&amp;nbsp; &amp;nbsp;and assign it to field&amp;nbsp;&lt;SPAN class=""&gt;&lt;U&gt;RequestUTCDateTime&lt;/U&gt;, .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;This should be done whenever "RequestUTCDateTime" is encountered in the raw log.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Please help me.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Thank You,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Ranjitha N&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 16:08:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-extract-regular-expressions/m-p/606829#M1679</guid>
      <dc:creator>ranjithan</dc:creator>
      <dc:date>2022-07-25T16:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: regular expressions - field extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-extract-regular-expressions/m-p/606844#M1680</link>
      <description>&lt;P&gt;You can extract the field at search-time using the rex command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "RequestUTCDateTime\\\":\\\"(?&amp;lt;RequestUTCDateTime&amp;gt;[^\\\"]+)"&lt;/LI-CODE&gt;&lt;P&gt;Or it can be extracted automatically using an EXTRACT setting in props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EXTRACT-RequestUTCDateTime = RequestUTCDateTime":"(?&amp;lt;RequestUTCDateTime&amp;gt;[^"]+)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 25 Jul 2022 13:03:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-extract-regular-expressions/m-p/606844#M1680</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-07-25T13:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: regular expressions - field extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-extract-regular-expressions/m-p/606852#M1681</link>
      <description>&lt;P&gt;Thank You so much for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 13:30:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-extract-regular-expressions/m-p/606852#M1681</guid>
      <dc:creator>ranjithan</dc:creator>
      <dc:date>2022-07-25T13:30:53Z</dc:date>
    </item>
  </channel>
</rss>

