<?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 display a timefrime from two events ? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-timefrime-from-two-events/m-p/447329#M29405</link>
    <description>&lt;P&gt;@nicxso try the following search. (You can take out &lt;CODE&gt;session_id="79626ba1b6e186c9011b4ae82dc724c0"&lt;/CODE&gt; from the main search once you are done testing).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=airlock_waf_app_acpt sourcetype="ergon:airlock:waf:web:access" (http_request_url="/portal/web/private-clients/" OR http_method="POST") AND (session_id="79626ba1b6e186c9011b4ae82dc724c0")
| stats count by min(_time) as _time max(_time) as latestTime values(host) as host values(audit_token) as audit_token values(src_ip) as src_ip values(time_request_total) as time_request_total by session_id
| search count&amp;gt;1
| eval duration=latestTime-_time
| where duration&amp;gt;10
| table host, vhost, audit_token, src_ip, session_id, time_request_total
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 17 Mar 2019 01:00:21 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2019-03-17T01:00:21Z</dc:date>
    <item>
      <title>How to display a timefrime from two events ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-timefrime-from-two-events/m-p/447328#M29404</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;

&lt;P&gt;I have a question. I have this search:&lt;/P&gt;

&lt;P&gt;index=airlock_waf_app_acpt sourcetype="ergon:airlock:waf:web:access" (http_request_url="/portal/web/private-clients/") OR (http_method="POST") AND (session_id="79626ba1b6e186c9011b4ae82dc724c0")&lt;/P&gt;

&lt;P&gt;| table host, vhost, audit_token, src_ip, session_id, time_request_total&lt;/P&gt;

&lt;P&gt;This gives me two events. In the picture, down below, the first event contains the part "http_request_url="/portal/web/private-clients/"" value and the second event contains the (http_method="POST") value. Both have the same session id.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/270811-test.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;I would like to create a dashboard where it shows a time frame  with the duration between this two events. The result of the duration should be 10 seconds.&lt;/P&gt;

&lt;P&gt;Is there a way where you don't have to use the transaction command or is there any other way ? Kinda curious.&lt;/P&gt;

&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:45:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-timefrime-from-two-events/m-p/447328#M29404</guid>
      <dc:creator>nicxso</dc:creator>
      <dc:date>2020-09-29T23:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a timefrime from two events ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-timefrime-from-two-events/m-p/447329#M29405</link>
      <description>&lt;P&gt;@nicxso try the following search. (You can take out &lt;CODE&gt;session_id="79626ba1b6e186c9011b4ae82dc724c0"&lt;/CODE&gt; from the main search once you are done testing).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=airlock_waf_app_acpt sourcetype="ergon:airlock:waf:web:access" (http_request_url="/portal/web/private-clients/" OR http_method="POST") AND (session_id="79626ba1b6e186c9011b4ae82dc724c0")
| stats count by min(_time) as _time max(_time) as latestTime values(host) as host values(audit_token) as audit_token values(src_ip) as src_ip values(time_request_total) as time_request_total by session_id
| search count&amp;gt;1
| eval duration=latestTime-_time
| where duration&amp;gt;10
| table host, vhost, audit_token, src_ip, session_id, time_request_total
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 17 Mar 2019 01:00:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-timefrime-from-two-events/m-p/447329#M29405</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-03-17T01:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a timefrime from two events ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-timefrime-from-two-events/m-p/447330#M29406</link>
      <description>&lt;P&gt;@niketnilay &lt;/P&gt;

&lt;P&gt;Thanks, I will try it out the search later.  I would also like to use the search to display a timeline, where the X-Axis is showing the time from this two events and on the Y-Axis the duration. How can I do that ? Could I just use the timechart command? How would the search look like ?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2019 10:54:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-timefrime-from-two-events/m-p/447330#M29406</guid>
      <dc:creator>nicxso</dc:creator>
      <dc:date>2019-03-17T10:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a timefrime from two events ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-timefrime-from-two-events/m-p/447331#M29407</link>
      <description>&lt;P&gt;@nicxso if you want to display the duration for events you can use &lt;A href="https://splunkbase.splunk.com/app/3120/"&gt;Timeline Custom Visualization&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2019 11:56:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-timefrime-from-two-events/m-p/447331#M29407</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-03-17T11:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a timefrime from two events ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-timefrime-from-two-events/m-p/447332#M29408</link>
      <description>&lt;P&gt;@niketnilay Would it also be possible to use the timechart command ?&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2019 14:18:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-timefrime-from-two-events/m-p/447332#M29408</guid>
      <dc:creator>nicxso</dc:creator>
      <dc:date>2019-03-17T14:18:16Z</dc:date>
    </item>
  </channel>
</rss>

