<?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: Multiple Timestamps - How to filter/select? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamps-How-to-filter-select/m-p/752236#M242600</link>
    <description>&lt;P&gt;Hey Giuseppe!&amp;nbsp; Thanks for the quick response.&amp;nbsp; Below is my current SPL.&lt;BR /&gt;&lt;BR /&gt;The "guid" field is what ties both event-types together for a single connection.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="connection_data" 
| stats
values("connections{}.left.facets{}.number") as sourcenumber
values("connections{}.left.facets{}.country") as sourcecountry
values("connections{}.right.facets{}.number") as destinationnumber
values("connections{}.right.facets{}.country") as destinationcountry
values("meta") as direction
values("id") as policyrule
values("disposition.disposition") as disposition
values("resourceId") as router
values("timestampStr") as timestamp
by guid
| eval sourcenumber=mvdedup(sourcenumber)
| eval destinationregion=mvdedup(destinationregion)
| eval destination_rc=mvdedup(destination_rc)
| eval destinationcountry=mvdedup(destinationcountry)
| eval destinationnumber=mvdedup(destinationnumber)
| eval calldisposition=mvdedup(calldisposition)
| where disposition="TERMINATED"

| table timestamp guid sourcenumber sourcecountry destinationnumber destinationcountry direction router disposition&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Aug 2025 15:25:24 GMT</pubDate>
    <dc:creator>sarge338</dc:creator>
    <dc:date>2025-08-26T15:25:24Z</dc:date>
    <item>
      <title>Multiple Timestamps - How to filter/select?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamps-How-to-filter-select/m-p/752227#M242597</link>
      <description>&lt;P&gt;Good day!&lt;/P&gt;&lt;P&gt;I am currently working on a search which provides data from two different event types (connection information and disposition information).&amp;nbsp; Everything is working well, except both event types have timestamps with the same name.&amp;nbsp; As a result, my returned data has two timestamps (in the same column) for each record.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there a way to limit the number of timestamps per record to 1?&amp;nbsp; Or is there a way to somehow designate which event type the timestamp should be pulled from?&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2025 14:51:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamps-How-to-filter-select/m-p/752227#M242597</guid>
      <dc:creator>sarge338</dc:creator>
      <dc:date>2025-08-26T14:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Timestamps - How to filter/select?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamps-How-to-filter-select/m-p/752228#M242598</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/67872"&gt;@sarge338&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;yes,&amp;nbsp;it's poossible to have one value for each column, but&amp;nbsp;could you share your search?&lt;/P&gt;&lt;P&gt;otherwise it's difficoult to give a correct answer!&lt;/P&gt;&lt;P&gt;in general, you could display only one of the values in the timestamp column ore rename one of the fields, but I need your search to help you.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2025 14:56:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamps-How-to-filter-select/m-p/752228#M242598</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-08-26T14:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Timestamps - How to filter/select?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamps-How-to-filter-select/m-p/752236#M242600</link>
      <description>&lt;P&gt;Hey Giuseppe!&amp;nbsp; Thanks for the quick response.&amp;nbsp; Below is my current SPL.&lt;BR /&gt;&lt;BR /&gt;The "guid" field is what ties both event-types together for a single connection.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="connection_data" 
| stats
values("connections{}.left.facets{}.number") as sourcenumber
values("connections{}.left.facets{}.country") as sourcecountry
values("connections{}.right.facets{}.number") as destinationnumber
values("connections{}.right.facets{}.country") as destinationcountry
values("meta") as direction
values("id") as policyrule
values("disposition.disposition") as disposition
values("resourceId") as router
values("timestampStr") as timestamp
by guid
| eval sourcenumber=mvdedup(sourcenumber)
| eval destinationregion=mvdedup(destinationregion)
| eval destination_rc=mvdedup(destination_rc)
| eval destinationcountry=mvdedup(destinationcountry)
| eval destinationnumber=mvdedup(destinationnumber)
| eval calldisposition=mvdedup(calldisposition)
| where disposition="TERMINATED"

| table timestamp guid sourcenumber sourcecountry destinationnumber destinationcountry direction router disposition&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2025 15:25:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamps-How-to-filter-select/m-p/752236#M242600</guid>
      <dc:creator>sarge338</dc:creator>
      <dc:date>2025-08-26T15:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Timestamps - How to filter/select?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamps-How-to-filter-select/m-p/752238#M242602</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hey Giuseppe!&amp;nbsp; Thanks for the quick response.&amp;nbsp; Below is my current SPL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The "guid" field is what ties both event-types together for a single connection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Seems I responded to myself first... &lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="connection_data"
| stats
values("connections{}.left.facets{}.number") as sourcenumber
values("connections{}.left.facets{}.country") as sourcecountry
values("connections{}.right.facets{}.number") as destinationnumber
values("connections{}.right.facets{}.country") as destinationcountry
values("meta") as direction
values("id") as policyrule
values("disposition.disposition") as disposition
values("resourceId") as router
values("timestampStr") as timestamp
by guid
| eval sourcenumber=mvdedup(sourcenumber)
| eval destinationregion=mvdedup(destinationregion)
| eval destination_rc=mvdedup(destination_rc)
| eval destinationcountry=mvdedup(destinationcountry)
| eval destinationnumber=mvdedup(destinationnumber)
| eval calldisposition=mvdedup(calldisposition)
| where disposition="TERMINATED"

| table timestamp guid sourcenumber sourcecountry destinationnumber destinationcountry direction router disposition&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2025 16:12:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamps-How-to-filter-select/m-p/752238#M242602</guid>
      <dc:creator>sarge338</dc:creator>
      <dc:date>2025-08-26T16:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Timestamps - How to filter/select?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamps-How-to-filter-select/m-p/752262#M242612</link>
      <description>&lt;P&gt;Thank you for clarifying your question with mock code.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Is there a way to limit the number of timestamps per record to 1?&amp;nbsp; Or is there a way to somehow designate which event type the timestamp should be pulled from?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;First, are teh two values of timestampStr represent the same time? &amp;nbsp;If yes, the answer is easy. &amp;nbsp;Just use the value.&lt;/P&gt;&lt;P&gt;If the two strings are different, only YOU can answer the question correctly. &amp;nbsp;What is the logic of using one vs the other? &amp;nbsp;Is one "better" than the other? &amp;nbsp;If it doesn't matter which, you can use first(timestampStr), last(timestampStr), earliest(timestampStr), latest(timestampStr), or any number of &lt;A href="https://help.splunk.com/en/splunk-enterprise/search/spl-search-reference/latest/statistical-and-charting-functions/statistical-and-charting-functions" target="_blank" rel="noopener"&gt;stats functions&lt;/A&gt; that yields a single value.&lt;/P&gt;&lt;P&gt;However, if you have a preference, you must describe your preference before any volunteer can help here.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2025 02:20:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamps-How-to-filter-select/m-p/752262#M242612</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2025-08-27T02:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Timestamps - How to filter/select?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamps-How-to-filter-select/m-p/752268#M242615</link>
      <description>&lt;P&gt;Most of the eval commands with the mvdedup() functions are superfluous as values() functions in the the prior stats command already dedups the values returned in these fields.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2025 06:06:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-Timestamps-How-to-filter-select/m-p/752268#M242615</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-08-27T06:06:36Z</dc:date>
    </item>
  </channel>
</rss>

