<?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: Help required on regex in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-required-on-regex/m-p/553048#M38336</link>
    <description>&lt;P&gt;Try the following regex with the &lt;STRONG&gt;rex&lt;/STRONG&gt; command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"\[(?&amp;lt;logDateTime&amp;gt;[\d, :,-]+)\].+ (?&amp;lt;logLevel&amp;gt;\w+) - (?&amp;lt;logMessage&amp;gt;.+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Splunk SPL it would look like this (assuming that the raw data is in a field called 'message'):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=message "\[(?&amp;lt;logDateTime&amp;gt;[\d, :,-]+)\].+ (?&amp;lt;logLevel&amp;gt;\w+) - (?&amp;lt;logMessage&amp;gt;.+)"
| table logDateTime logLevel logMessage&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully that suits your needs?&lt;/P&gt;&lt;P&gt;Eddie&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 May 2021 04:21:19 GMT</pubDate>
    <dc:creator>eddieddieddie</dc:creator>
    <dc:date>2021-05-26T04:21:19Z</dc:date>
    <item>
      <title>Help required on regex</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-required-on-regex/m-p/553044#M38335</link>
      <description>&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;I am looking for your help for a rex expression.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;message&lt;/STRONG&gt;&amp;nbsp;=&amp;nbsp; [2021-05-26 00:00:33,477] {taskinstance.py:669} INFO - Dependencies all met for &amp;lt;TaskInstance: example_dag_oidc.test_bash 2021-05-25 00:00:00+00:00 [None]&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to split this message field as below fields:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;logDateTime&lt;/STRONG&gt; = 2021-05-26 00:00:33,477&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;logLevel&lt;/STRONG&gt; = INFO&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;logMessage&lt;/STRONG&gt; = Dependencies all met for &amp;lt;TaskInstance: example_dag_oidc.test_bash 2021-05-25 00:00:00+00:00 [None]&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 03:56:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Help-required-on-regex/m-p/553044#M38335</guid>
      <dc:creator>rangarbus</dc:creator>
      <dc:date>2021-05-26T03:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help required on regex</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-required-on-regex/m-p/553048#M38336</link>
      <description>&lt;P&gt;Try the following regex with the &lt;STRONG&gt;rex&lt;/STRONG&gt; command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"\[(?&amp;lt;logDateTime&amp;gt;[\d, :,-]+)\].+ (?&amp;lt;logLevel&amp;gt;\w+) - (?&amp;lt;logMessage&amp;gt;.+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Splunk SPL it would look like this (assuming that the raw data is in a field called 'message'):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=message "\[(?&amp;lt;logDateTime&amp;gt;[\d, :,-]+)\].+ (?&amp;lt;logLevel&amp;gt;\w+) - (?&amp;lt;logMessage&amp;gt;.+)"
| table logDateTime logLevel logMessage&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully that suits your needs?&lt;/P&gt;&lt;P&gt;Eddie&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 04:21:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Help-required-on-regex/m-p/553048#M38336</guid>
      <dc:creator>eddieddieddie</dc:creator>
      <dc:date>2021-05-26T04:21:19Z</dc:date>
    </item>
  </channel>
</rss>

