<?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 keep the original start time, but continuously update the end time using the dedup command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-original-start-time-but-continuously-update-the/m-p/337692#M100170</link>
    <description>&lt;P&gt;You can use following query to get the original (first) start_time and latest end_time when you run the query.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=name source=source_name | fields start_time end_time src subject category id body| stats earliest(start_time) as start_time latest(*) as * by id | table start_time end_time src subject category id body
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For the conditional drilldown, you can use methods from following documentation page to enable drilldown on certain fields only.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Viz/tokens#Define_tokens_for_conditional_operations_with_the_.3Cdrilldown.3E_element" target="_blank"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Viz/tokens#Define_tokens_for_conditional_operations_with_the_.3Cdrilldown.3E_element&lt;/A&gt; (see the example where it enables drilldown only for field sourcetype)&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 17:54:57 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2020-09-29T17:54:57Z</dc:date>
    <item>
      <title>How to keep the original start time, but continuously update the end time using the dedup command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-original-start-time-but-continuously-update-the/m-p/337690#M100168</link>
      <description>&lt;P&gt;So the query that is currently in use is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=name source=source_name | fields start_time end_time src subject category id body| dedup id | table start_time end_time src subject category id body
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where the table shows all events correlated with the same id, however, it keeps the original &lt;CODE&gt;start_time&lt;/CODE&gt; and &lt;CODE&gt;end_time&lt;/CODE&gt; of the first event with that id.  I want to keep the original start time, but continuously update the end time.&lt;/P&gt;

&lt;P&gt;On a side note, when enabling drill down per cell is there a way to have the drill down to the search field only search on the &lt;CODE&gt;index/source/field selected&lt;/CODE&gt;?  Currently, when clicking on a random field it searches on the &lt;CODE&gt;index/source/start_time/selected field&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 13:27:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-original-start-time-but-continuously-update-the/m-p/337690#M100168</guid>
      <dc:creator>rebeccaweaver</dc:creator>
      <dc:date>2018-01-29T13:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the original start time, but continuously update the end time using the dedup command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-original-start-time-but-continuously-update-the/m-p/337691#M100169</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=name source=source_name 
| fields start_time end_time src subject category id body
| dedup id 
| stats earliest(start_time) as start latest(end_time) as end by src subject category id body
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jan 2018 16:58:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-original-start-time-but-continuously-update-the/m-p/337691#M100169</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-01-29T16:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the original start time, but continuously update the end time using the dedup command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-original-start-time-but-continuously-update-the/m-p/337692#M100170</link>
      <description>&lt;P&gt;You can use following query to get the original (first) start_time and latest end_time when you run the query.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=name source=source_name | fields start_time end_time src subject category id body| stats earliest(start_time) as start_time latest(*) as * by id | table start_time end_time src subject category id body
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For the conditional drilldown, you can use methods from following documentation page to enable drilldown on certain fields only.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Viz/tokens#Define_tokens_for_conditional_operations_with_the_.3Cdrilldown.3E_element" target="_blank"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Viz/tokens#Define_tokens_for_conditional_operations_with_the_.3Cdrilldown.3E_element&lt;/A&gt; (see the example where it enables drilldown only for field sourcetype)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:54:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-original-start-time-but-continuously-update-the/m-p/337692#M100170</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T17:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the original start time, but continuously update the end time using the dedup command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-original-start-time-but-continuously-update-the/m-p/337693#M100171</link>
      <description>&lt;P&gt;That did not work, all it did was change the names of the columns, and move the start and end to the far right, rather than the left.  It still had the incorrect values. &lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 17:09:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-original-start-time-but-continuously-update-the/m-p/337693#M100171</guid>
      <dc:creator>rebeccaweaver</dc:creator>
      <dc:date>2018-01-29T17:09:48Z</dc:date>
    </item>
  </channel>
</rss>

