<?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 create a table based on certain fields from the Output Results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206780#M60240</link>
    <description>&lt;P&gt;Try something like this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=iib_mq sourcetype=iib_mq_dev source="C:\\Temp\\mqoutput.txt" "QUEUE(" "CURDEPTH(" 
| rex "QUEUE\((?&amp;lt;QUEUE_NAME&amp;gt;[^\)]+)[\S\s]CURDEPTH\((?&amp;lt;CURRENT_QUEUE_DEPTH&amp;gt;\d+)" | table QUEUE_NAME CURRENT_QUEUE_DEPTH
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Update#1&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=iib_mq sourcetype=iib_mq_dev source="C:\\Temp\\mqoutput.txt" "QUEUE(" "CURDEPTH(" 
  | rex "QUEUE\((?&amp;lt;QUEUE_NAME&amp;gt;[^\)]+)" | rex "CURDEPTH\((?&amp;lt;CURRENT_QUEUE_DEPTH&amp;gt;\d+)" | table QUEUE_NAME CURRENT_QUEUE_DEPTH
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 17 Feb 2016 17:43:27 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-02-17T17:43:27Z</dc:date>
    <item>
      <title>How to create a table based on certain fields from the Output Results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206778#M60238</link>
      <description>&lt;P&gt;Hi Splunk Support,&lt;/P&gt;

&lt;P&gt;I'm trying to create a table based on certain fields from the Output Results: &lt;/P&gt;

&lt;P&gt;Search String: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=iib_mq sourcetype=iib_mq_dev source="C:\\Temp\\mqoutput.txt"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Results : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    1 : dis ql (VIA.EVENT.ACTUTIME.UPD.FOR.ODBS) curdepth
AMQ8409: Display Queue details.
   QUEUE(VIA.EVENT.ACTUTIME.UPD.FOR.ODBS)
   TYPE(QLOCAL)                            CURDEPTH(0)
     2 : dis ql (VIA.EVENT.ACTUTIME.UPD.FOR.ODBS.BO) curdepth
AMQ8409: Display Queue details.
   QUEUE(VIA.EVENT.ACTUTIME.UPD.FOR.ODBS.BO)
   TYPE(QLOCAL)                            CURDEPTH(0)
     3 : dis ql (VIA.EVENT.ACTUTIME.UPD.FOR.OTP) curdepth
AMQ8409: Display Queue details.
   QUEUE(VIA.EVENT.ACTUTIME.UPD.FOR.OTP)   TYPE(QLOCAL)
   CURDEPTH(0)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Table to Create: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;QUEUE NAME                          CURRENT_QUEUE_DEPTH
VIA.EVENT.ACTUTIME.UPD.FOR.ODBS     CURDEPTH(0)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Aldwin&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 14:46:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206778#M60238</guid>
      <dc:creator>dwin02</dc:creator>
      <dc:date>2016-02-17T14:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on certain fields from the Output Results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206779#M60239</link>
      <description>&lt;P&gt;Have you got fieldname for each of these fields?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 16:24:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206779#M60239</guid>
      <dc:creator>marina_rovira</dc:creator>
      <dc:date>2016-02-17T16:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on certain fields from the Output Results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206780#M60240</link>
      <description>&lt;P&gt;Try something like this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=iib_mq sourcetype=iib_mq_dev source="C:\\Temp\\mqoutput.txt" "QUEUE(" "CURDEPTH(" 
| rex "QUEUE\((?&amp;lt;QUEUE_NAME&amp;gt;[^\)]+)[\S\s]CURDEPTH\((?&amp;lt;CURRENT_QUEUE_DEPTH&amp;gt;\d+)" | table QUEUE_NAME CURRENT_QUEUE_DEPTH
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Update#1&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=iib_mq sourcetype=iib_mq_dev source="C:\\Temp\\mqoutput.txt" "QUEUE(" "CURDEPTH(" 
  | rex "QUEUE\((?&amp;lt;QUEUE_NAME&amp;gt;[^\)]+)" | rex "CURDEPTH\((?&amp;lt;CURRENT_QUEUE_DEPTH&amp;gt;\d+)" | table QUEUE_NAME CURRENT_QUEUE_DEPTH
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Feb 2016 17:43:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206780#M60240</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-17T17:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on certain fields from the Output Results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206781#M60241</link>
      <description>&lt;P&gt;Thank you for your suggestion but it's not working. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "QUEUE\((?[^\)]+)[\S\s]CURDEPTH\((?\d+)" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The following regex expression doesn't show the queue name and nor the Current Queue Depth.&lt;/P&gt;

&lt;P&gt;I'm trying to find out maybe  there's something wrong with the expression but your suggestion is very appreciated.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Aldwin&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 19:08:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206781#M60241</guid>
      <dc:creator>dwin02</dc:creator>
      <dc:date>2016-02-17T19:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on certain fields from the Output Results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206782#M60242</link>
      <description>&lt;P&gt;Try this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=iib_mq sourcetype=iib_mq_dev source="C:\\Temp\\mqoutput.txt" "QUEUE(" "CURDEPTH(" 
 | rex "QUEUE\((?&amp;lt;QUEUE_NAME&amp;gt;[^\)]" | rex "CURDEPTH\((?&amp;lt;CURRENT_QUEUE_DEPTH&amp;gt;\d+)" | table QUEUE_NAME CURRENT_QUEUE_DEPTH
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Feb 2016 19:21:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206782#M60242</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-17T19:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on certain fields from the Output Results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206783#M60243</link>
      <description>&lt;P&gt;Hi Somesoni2, &lt;/P&gt;

&lt;P&gt;I'm now getting a result for the &lt;CODE&gt;rex "CURDEPTH\((?\d+)"&lt;/CODE&gt; but still not working for &lt;CODE&gt;rex "QUEUE\((?[^\)]"&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Please see screenshot attach.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Aldwin&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 20:18:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206783#M60243</guid>
      <dc:creator>dwin02</dc:creator>
      <dc:date>2016-02-17T20:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on certain fields from the Output Results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206784#M60244</link>
      <description>&lt;P&gt;Teere is an issue with the regex that I wrote. Fixed in the main answer (see Update#1).&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 21:08:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206784#M60244</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-17T21:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on certain fields from the Output Results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206785#M60245</link>
      <description>&lt;P&gt;You mean this one: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=iib_mq sourcetype=iib_mq_dev source="C:\\Temp\\mqoutput.txt" "QUEUE(" "CURDEPTH(" 
 | rex "QUEUE\((?[^\)]+)[\S\s]CURDEPTH\((?\d+)" | table QUEUE_NAME CURRENT_QUEUE_DEPTH
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried this and it's not working.&lt;BR /&gt;
Your second update worked but only for &lt;CODE&gt;rex "CURDEPTH\((?\d+)", the rex "QUEUE\((?[^\)]"&lt;/CODE&gt; did not work.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 21:25:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206785#M60245</guid>
      <dc:creator>dwin02</dc:creator>
      <dc:date>2016-02-17T21:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on certain fields from the Output Results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206786#M60246</link>
      <description>&lt;P&gt;I mean this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=iib_mq sourcetype=iib_mq_dev source="C:\\Temp\\mqoutput.txt" "QUEUE(" "CURDEPTH(" 
       | rex "QUEUE\((?&amp;lt;QUEUE_NAME&amp;gt;[^\)]+)" | rex "CURDEPTH\((?&amp;lt;CURRENT_QUEUE_DEPTH&amp;gt;\d+)" | table QUEUE_NAME CURRENT_QUEUE_DEPTH
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Feb 2016 23:18:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206786#M60246</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-17T23:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on certain fields from the Output Results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206787#M60247</link>
      <description>&lt;P&gt;Hi Somesoni2,&lt;/P&gt;

&lt;P&gt;Thank you for all your help. It worked perfectly.&lt;BR /&gt;
If you don't mind, using the same search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=iib_mq sourcetype=iib_mq_dev source="C:\\Temp\\mqoutput.txt" "QUEUE(" "CURDEPTH(" | rex max_match=8 "QUEUE\((?[^\)]+)" | rex max_match=8  "CURDEPTH\((?\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I just want to show where the value of  CURDEPTH is more than let's say 100, I've tried looking at some solutions but can't seem to find the right solution.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Aldwin&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 02:53:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206787#M60247</guid>
      <dc:creator>dwin02</dc:creator>
      <dc:date>2016-02-18T02:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on certain fields from the Output Results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206788#M60248</link>
      <description>&lt;P&gt;Just add the filter condition like this at the end of the search &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=iib_mq sourcetype=iib_mq_dev source="C:\\Temp\\mqoutput.txt" "QUEUE(" "CURDEPTH(" 
        | rex "QUEUE\((?&amp;lt;QUEUE_NAME&amp;gt;[^\)]+)" | rex "CURDEPTH\((?&amp;lt;CURRENT_QUEUE_DEPTH&amp;gt;\d+)" | table QUEUE_NAME CURRENT_QUEUE_DEPTH | where CURRENT_QUEUE_DEPTH &amp;gt; 100
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Feb 2016 03:37:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206788#M60248</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-18T03:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on certain fields from the Output Results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206789#M60249</link>
      <description>&lt;P&gt;Hi Somesoni,&lt;BR /&gt;
               I've tried that already but it did not work. Even if I change it to where CURRENT_QUEUE_DEPTH &amp;gt; 1 since I only have 4 as the highest current depth.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Aldwin&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:46:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206789#M60249</guid>
      <dc:creator>dwin02</dc:creator>
      <dc:date>2020-09-29T08:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on certain fields from the Output Results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206790#M60250</link>
      <description>&lt;P&gt;Do you you've multiple queues in single events and want to sum all the queue depth in each event and compare it to100? Or do you want to sum queue depth of all events and compare with 100?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 04:52:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206790#M60250</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-18T04:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on certain fields from the Output Results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206791#M60251</link>
      <description>&lt;P&gt;It would need to this one : &lt;/P&gt;

&lt;P&gt;Do you you've multiple queues in single events and want to sum all the queue depth in each event and compare it to100?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 05:19:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-certain-fields-from-the-Output/m-p/206791#M60251</guid>
      <dc:creator>dwin02</dc:creator>
      <dc:date>2016-02-18T05:19:32Z</dc:date>
    </item>
  </channel>
</rss>

