<?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 do I display data in different rows? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-data-in-different-rows/m-p/425474#M40845</link>
    <description>&lt;P&gt;Accepted this since I'm using less number of events and hence suits my requirement better.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Oct 2018 03:54:15 GMT</pubDate>
    <dc:creator>poojadevadas</dc:creator>
    <dc:date>2018-10-18T03:54:15Z</dc:date>
    <item>
      <title>How do I display data in different rows?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-data-in-different-rows/m-p/425465#M40836</link>
      <description>&lt;P&gt;I have multiple logs in a file and I want to find the difference between them. For Example:&lt;BR /&gt;
*&lt;BR /&gt;
1. 05/10/2018 - 14:04:49 --- Deployment Process completed&lt;BR /&gt;
2. 05/10/2018 - 14:04:39 --- extra processes completed&lt;BR /&gt;
3. 05/10/2018 - 14:04:36 --- extra processes started&lt;BR /&gt;
4. 05/10/2018 - 14:04:34 --- ftp completed&lt;BR /&gt;
5. 05/10/2018 - 14:04:30 --- About to ftp data&lt;BR /&gt;
6. 05/10/2018 - 14:04:29 --- Deployment Process started *&lt;/P&gt;

&lt;P&gt;Desired output:-&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Description.                                               -&amp;gt;                   Time taken&lt;BR /&gt;
Time taken for ftp(5. - 4.).         -&amp;gt;                        4s&lt;BR /&gt;
Time taken for extra process(3. - 2.).     -&amp;gt;        3s&lt;BR /&gt;
Total time taken(6. - 1.)                  -&amp;gt;                  20s&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I'm using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|transaction host startswith="Running the Deployment Process" endswith="Deployment Process Completed OK" | timechart avg(duration) as difference |
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This helps in finding the time difference between 2 events at a time but I'm unable to understand how to do this with multiple events and display it as mentioned above(one after the other in different rows of a table).&lt;/P&gt;

&lt;P&gt;Could someone please help me with this?&lt;/P&gt;</description>
      <pubDate>Sat, 13 Oct 2018 22:24:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-data-in-different-rows/m-p/425465#M40836</guid>
      <dc:creator>poojadevadas</dc:creator>
      <dc:date>2018-10-13T22:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display data in different rows?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-data-in-different-rows/m-p/425466#M40837</link>
      <description>&lt;P&gt;@poojadevadas,&lt;BR /&gt;
Are these from same host/source/sourcetype or is there any unique value we could use to differentiate and group these messages? Also is there a definite set of processes or are these process messagess dynamic? Just trying to understand if we can normalize this data to have uniformity in log messages&lt;/P&gt;</description>
      <pubDate>Sun, 14 Oct 2018 04:09:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-data-in-different-rows/m-p/425466#M40837</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-10-14T04:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display data in different rows?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-data-in-different-rows/m-p/425467#M40838</link>
      <description>&lt;P&gt;Hi @renjith.nair,&lt;/P&gt;

&lt;P&gt;These are from the same host, source and source type. &lt;BR /&gt;
There's no unique value which we can use to differentiate and group these messages. All I have is this log files which looks exactly like how I have mentioned above(except for the numbers on the left).&lt;BR /&gt;
And yes, we use the same processes in each log until and unless the deployment is unsuccessful(which I'm not looking for at present). So, the logs that I'm gonna consider is only for successful deployments and hence these processes are definite set of processes.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Oct 2018 05:48:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-data-in-different-rows/m-p/425467#M40838</guid>
      <dc:creator>poojadevadas</dc:creator>
      <dc:date>2018-10-14T05:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display data in different rows?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-data-in-different-rows/m-p/425468#M40839</link>
      <description>&lt;P&gt;@poojadevadas&lt;/P&gt;

&lt;P&gt;Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YOUR_SEARCH | appendpipe [transaction host startswith="About to ftp data" endswith="ftp completed" | eval "Time taken for ftp"=duration ] | appendpipe [transaction host startswith="extra processes started" endswith="extra processes completed" | eval "Time taken for extra process"=duration ] | appendpipe [ |transaction host startswith="Deployment Process started" endswith="Deployment Process Completed" | eval "Total time taken"=duration] | stats values(*) as * by host  | eval Description="Time taken" | table Description "Time taken for ftp" "Time taken for extra process" "Total time taken" | transpose header_field=Description column_name=Description | eval "Time taken"='Time taken'."s"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note: For designing a search I have used your provided sample only.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Oct 2018 06:53:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-data-in-different-rows/m-p/425468#M40839</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-10-14T06:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display data in different rows?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-data-in-different-rows/m-p/425469#M40840</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/142778"&gt;@poojadevadas&lt;/a&gt;,&lt;/P&gt;

&lt;P&gt;Based on the data provided, try this,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"your initial search " |replace "ftp completed" with "ftp process completed","About to ftp data" with "ftp process started"
|eval _time=strptime(_time,"%d/%m/%Y %H:%M:%S")
|rex field=REPLACE_THIS_WITH_YOUR_FIELD_NAME "(?&amp;lt;process_name&amp;gt;\w+)\s+(?i)process"
|sort process_name,_time
|streamstats current=f window=1 last(_time) as start_time by process_name
|eval "Time taken"=_time-start_time|search "Time taken"=*
|eval Description="Time taken for ".process_name." process"
|table Description,"Time taken"| addcoltotals labelfield="Description" label="Total time taken"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Removed transactions since they are bit expensive comparatively.&lt;/P&gt;

&lt;P&gt;REPLACE_THIS_WITH_YOUR_FIELD_NAME  should be replaced with your fieldname where you have the strings " Deployment Process,extra processes" etc.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:36:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-data-in-different-rows/m-p/425469#M40840</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-09-29T21:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display data in different rows?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-data-in-different-rows/m-p/425470#M40841</link>
      <description>&lt;P&gt;This took some time for me to understand(since I'm new to Splunk) but was able to use it with some changes. Thanks a ton! &lt;/P&gt;</description>
      <pubDate>Sun, 14 Oct 2018 18:01:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-data-in-different-rows/m-p/425470#M40841</guid>
      <dc:creator>poojadevadas</dc:creator>
      <dc:date>2018-10-14T18:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display data in different rows?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-data-in-different-rows/m-p/425471#M40842</link>
      <description>&lt;P&gt;This is a very straight forward one. Except for the the fact mentioned by @renjith.nair that transactions are expensive, this is good to go for. Used it and got the output as expected. Thanks a ton!&lt;/P&gt;</description>
      <pubDate>Sun, 14 Oct 2018 18:06:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-data-in-different-rows/m-p/425471#M40842</guid>
      <dc:creator>poojadevadas</dc:creator>
      <dc:date>2018-10-14T18:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display data in different rows?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-data-in-different-rows/m-p/425472#M40843</link>
      <description>&lt;P&gt;@poojadevadas, performance consideration of &lt;CODE&gt;transaction&lt;/CODE&gt; comes when you a have large number of events. Whichever answer suits your requirement better, "accept it as answer" so that the thread is closed. &lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2018 03:33:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-data-in-different-rows/m-p/425472#M40843</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-10-15T03:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display data in different rows?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-data-in-different-rows/m-p/425473#M40844</link>
      <description>&lt;P&gt;hi @poojadevadas ,&lt;/P&gt;

&lt;P&gt;It looks like @renjith.nair helped solve your problem. Would you mind approving their answer and up-voting? Thanks for posting!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2018 16:56:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-data-in-different-rows/m-p/425473#M40844</guid>
      <dc:creator>mstjohn_splunk</dc:creator>
      <dc:date>2018-10-15T16:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display data in different rows?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-data-in-different-rows/m-p/425474#M40845</link>
      <description>&lt;P&gt;Accepted this since I'm using less number of events and hence suits my requirement better.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 03:54:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-data-in-different-rows/m-p/425474#M40845</guid>
      <dc:creator>poojadevadas</dc:creator>
      <dc:date>2018-10-18T03:54:15Z</dc:date>
    </item>
  </channel>
</rss>

