<?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: Table view in dashboard in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456435#M129033</link>
    <description>&lt;P&gt;@ansusabu Thanks it worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2019 10:40:25 GMT</pubDate>
    <dc:creator>venkat0896</dc:creator>
    <dc:date>2019-08-20T10:40:25Z</dc:date>
    <item>
      <title>Table view in dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456425#M129023</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;i am trying to create a Dashboard. i need some assistance on creating a table format.&lt;BR /&gt;
i have some executions like &lt;BR /&gt;
1. XXX All rules has been executed in 1068 ms.&lt;BR /&gt;
2. YYY All rules has been executed in 900 ms.&lt;BR /&gt;
3. ZZZ All rules has been executed in 1300 ms.&lt;/P&gt;

&lt;P&gt;i want to view this as a table with total count of occurrence and Average response time &lt;BR /&gt;
the table should look like &lt;/P&gt;

&lt;P&gt;Request  Count Avg response time&lt;BR /&gt;
XXX            1                   1068 ms&lt;BR /&gt;
YYY            1                      900 ms&lt;BR /&gt;
ZZZ            1                    1300 ms&lt;/P&gt;

&lt;P&gt;Please help on this. thanks in advance !     &lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 11:05:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456425#M129023</guid>
      <dc:creator>venkat0896</dc:creator>
      <dc:date>2019-08-19T11:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Table view in dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456426#M129024</link>
      <description>&lt;P&gt;This should get you started.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "(?&amp;lt;Request&amp;gt;\w+).*?in (?&amp;lt;ms&amp;gt;\d+)" 
| stats count as Count avg(ms) as "Avg response time" by Request
| table Request Count "Avg response time"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Aug 2019 13:09:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456426#M129024</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-08-19T13:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Table view in dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456427#M129025</link>
      <description>&lt;P&gt;@richgalloway &lt;BR /&gt;
I am getting validation issues "unexpected close tag"&lt;BR /&gt;
please take a look at my query tag &lt;BR /&gt;
source="/server.log" &lt;BR /&gt;
"All rules has been executed in"&lt;BR /&gt;
| rex "(?\w+).*?in (?\d+)" &lt;BR /&gt;
 | stats count as Count, avg(ms) as "Avg response time" by Request&lt;/P&gt;

&lt;P&gt;any suggestions ? thanks in advance !!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 15:26:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456427#M129025</guid>
      <dc:creator>venkat0896</dc:creator>
      <dc:date>2019-08-19T15:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Table view in dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456428#M129026</link>
      <description>&lt;P&gt;it is rex field='fieldname'(regex)&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 16:00:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456428#M129026</guid>
      <dc:creator>ansusabu</dc:creator>
      <dc:date>2019-08-19T16:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Table view in dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456429#M129027</link>
      <description>&lt;P&gt;hi @venkat0896 &lt;BR /&gt;
I think your format got corrupted while pasting as a comment, which happens.&lt;BR /&gt;
@richgalloway 's rex is correct and giving the right output, do you see any issues with using his rex?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 16:03:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456429#M129027</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-19T16:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Table view in dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456430#M129028</link>
      <description>&lt;P&gt;@richgalloway @Sukisen1981 &lt;BR /&gt;
yes looks like the format got corrupted. now i did used the query in search command but the output is not what i was expecting.&lt;BR /&gt;
&lt;STRONG&gt;My expected format:&lt;/STRONG&gt;&lt;BR /&gt;
Request Count Avg response time&lt;BR /&gt;
XXX 1 1068 ms&lt;BR /&gt;
YYY 1 900 ms&lt;BR /&gt;
ZZZ 1 1300 ms&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;but was:&lt;/STRONG&gt;&lt;BR /&gt;
Request Count   Avg response time&lt;BR /&gt;
 2019   29            169.13793103448276&lt;/P&gt;

&lt;P&gt;whats actually happening is the query which you provided is giving the overall count and average response time. &lt;BR /&gt;
basically i am using 3 different services i want the result to be displayed individually for each service instead of as a whole.&lt;BR /&gt;
Secondly this query is not appending the service name.&lt;BR /&gt;
this is my logger &lt;BR /&gt;
2019-08-20 13:55:47,054 INFO  &lt;A href="https://community.splunk.com/default%20task-1"&gt;package name&lt;/A&gt; XXX All rules has been executed in 540 ms&lt;BR /&gt;
expected &lt;BR /&gt;
Request Count Average response&lt;BR /&gt;
XXX               1          540 ms&lt;/P&gt;

&lt;P&gt;but in request it is appending as 2019 as it is picking the first word from the sentence.&lt;BR /&gt;
appreciate your help on this. thanks&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 09:17:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456430#M129028</guid>
      <dc:creator>venkat0896</dc:creator>
      <dc:date>2019-08-20T09:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Table view in dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456431#M129029</link>
      <description>&lt;P&gt;The problem was with the regex, since the log format which you gave was like: XXX All rules has been executed in 1068 ms.&lt;/P&gt;

&lt;P&gt;Try using the regex for '2019-08-20 13:55:47,054 INFO &lt;A href="https://community.splunk.com/default%20task-1"&gt;package name&lt;/A&gt; XXX All rules has been executed in 540 ms'&lt;BR /&gt;
\)\s(?\w+).*?in (?\d+)&lt;/P&gt;

&lt;P&gt;"""... | rex "\)\s(?\w+).*?in (?\d+)" &lt;BR /&gt;
 | stats count as Count avg(ms) as "Avg response time" by request&lt;BR /&gt;
 | table request Count "Avg response time""""&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 10:10:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456431#M129029</guid>
      <dc:creator>ansusabu</dc:creator>
      <dc:date>2019-08-20T10:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Table view in dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456432#M129030</link>
      <description>&lt;P&gt;@ansusabu &lt;BR /&gt;
Since my code calls multiple services over period of time the time stamp keeps changing. the above mentioned way might work only for the explicitly given time in the expression&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 10:21:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456432#M129030</guid>
      <dc:creator>venkat0896</dc:creator>
      <dc:date>2019-08-20T10:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Table view in dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456433#M129031</link>
      <description>&lt;P&gt;@venkat0896 If the logs always follow the below pattern &lt;BR /&gt;
2019-08-20 13:55:47,054 INFO &lt;A href="https://community.splunk.com/default%20task-1"&gt;package name&lt;/A&gt; XXX All rules has been executed in 540 ms&lt;BR /&gt;
(date),ddd INFO &lt;A href="https://community.splunk.com/...."&gt;package name&lt;/A&gt; XXX All rules has been executed in 540 ms&lt;/P&gt;

&lt;P&gt;then you can use the following regex,include '\)\s'  at the start of regex which richgalloway has mentioned and use the same query&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 10:26:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456433#M129031</guid>
      <dc:creator>ansusabu</dc:creator>
      <dc:date>2019-08-20T10:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Table view in dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456434#M129032</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;... | rex "\)\s(?&amp;lt;Request&amp;gt;\w+).*?in (?&amp;lt;ms&amp;gt;\d+)" 
 | stats count as Count avg(ms) as "Avg response time" by Request
 | table Request Count "Avg response time"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Aug 2019 10:28:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456434#M129032</guid>
      <dc:creator>ansusabu</dc:creator>
      <dc:date>2019-08-20T10:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Table view in dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456435#M129033</link>
      <description>&lt;P&gt;@ansusabu Thanks it worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 10:40:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-view-in-dashboard/m-p/456435#M129033</guid>
      <dc:creator>venkat0896</dc:creator>
      <dc:date>2019-08-20T10:40:25Z</dc:date>
    </item>
  </channel>
</rss>

