<?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: Splunk regex query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-this-Splunk-regex-query/m-p/603406#M209992</link>
    <description>&lt;P&gt;It's not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jun 2022 15:19:11 GMT</pubDate>
    <dc:creator>sbsinha04</dc:creator>
    <dc:date>2022-06-27T15:19:11Z</dc:date>
    <item>
      <title>How to achieve this Splunk regex query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-this-Splunk-regex-query/m-p/602442#M209699</link>
      <description>&lt;P&gt;This is the log i am getting in splunk&lt;/P&gt;
&lt;P&gt;msg: 2022-01-22 03:00:00.143 INFO 15 --- [ scheduling-1PurgeProcessCountTask : engine:Engine12&lt;BR /&gt;Cleanable Process Instance Count {"exception_management_workflow":{"finishedCount":6621,"cleanableCount":1113}}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i want output like&lt;/P&gt;
&lt;P&gt;Engine&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; finishedProcessInstanceCount&lt;/P&gt;
&lt;P&gt;Engine12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;6621&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please help me on that, i am trying below query but not working&lt;/P&gt;
&lt;P&gt;index=abc cf_app_name="DEV" |rex field=_raw "engine.(?&amp;lt;pam&amp;gt;.........) ,finishedProcessInstanceCount...(?&amp;lt;sam&amp;gt;..\d+)" | table pam, sam&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 18:08:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-this-Splunk-regex-query/m-p/602442#M209699</guid>
      <dc:creator>sbsinha04</dc:creator>
      <dc:date>2022-06-21T18:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk regex query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-this-Splunk-regex-query/m-p/602450#M209702</link>
      <description>&lt;P&gt;The example regex would work great if the engine name was followed immediately by a comma and the finished count, but that's not the case.&amp;nbsp; While we could define a regex to extract both fields from the event, this is a good example of a time when multiple rex commands is easier to work with.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=abc cf_app_name="DEV" 
| rex "engine:(?&amp;lt;pam&amp;gt;\w+)"
| rex "finishedCount\\\":(?&amp;lt;sam&amp;gt;\d+)" 
| table pam, sam&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 20 Jun 2022 18:18:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-this-Splunk-regex-query/m-p/602450#M209702</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-06-20T18:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk regex query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-this-Splunk-regex-query/m-p/603406#M209992</link>
      <description>&lt;P&gt;It's not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 15:19:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-this-Splunk-regex-query/m-p/603406#M209992</guid>
      <dc:creator>sbsinha04</dc:creator>
      <dc:date>2022-06-27T15:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk regex query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-this-Splunk-regex-query/m-p/603407#M209993</link>
      <description>&lt;P&gt;Query is not returning any data&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 15:20:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-this-Splunk-regex-query/m-p/603407#M209993</guid>
      <dc:creator>sbsinha04</dc:creator>
      <dc:date>2022-06-27T15:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk regex query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-this-Splunk-regex-query/m-p/603420#M209995</link>
      <description>&lt;P&gt;It works with the sample event provided in the OP.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="msg: 2022-01-22 03:00:00.143 INFO 15 --- [ scheduling-1PurgeProcessCountTask : engine:Engine12
Cleanable Process Instance Count {\"exception_management_workflow\":{\"finishedCount\":6621,\"cleanableCount\":1113}}"
| rex "engine:(?&amp;lt;pam&amp;gt;\w+)"
| rex "finishedCount\\\":(?&amp;lt;sam&amp;gt;\d+)" 
| table pam, sam&lt;/LI-CODE&gt;&lt;P&gt;If it's not working with real data then it's possible either or both of the regular expressions need to be modified to match the real data.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 16:49:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-this-Splunk-regex-query/m-p/603420#M209995</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-06-27T16:49:19Z</dc:date>
    </item>
  </channel>
</rss>

