<?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 JOIN on &amp;quot;_time +- 3sec&amp;quot; in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/JOIN-on-quot-time-3sec-quot/m-p/375202#M110244</link>
    <description>&lt;P&gt;Hi, I'm new to splunk &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;This is my query: &lt;BR /&gt;
* Tagname="series" Wert="54" | JOIN _time [SEARCH Tagname="workload" ]  | CHART VALUES(Wert) BY _time *&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Goal:&lt;/STRONG&gt; &lt;BR /&gt;
The query above got me nearly 75% of my events. But sometimes the timestamp differs a little bit, so I need to have a &lt;STRONG&gt;tolerance range&lt;/STRONG&gt; with &lt;STRONG&gt;+/- 3 seconds for "_time"&lt;/STRONG&gt; . &lt;/P&gt;

&lt;P&gt;How can I achieve this?&lt;/P&gt;

&lt;P&gt;Thanks for your help, &lt;BR /&gt;
Bastian&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2018 10:11:27 GMT</pubDate>
    <dc:creator>BOstermeier</dc:creator>
    <dc:date>2018-02-14T10:11:27Z</dc:date>
    <item>
      <title>JOIN on "_time +- 3sec"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/JOIN-on-quot-time-3sec-quot/m-p/375202#M110244</link>
      <description>&lt;P&gt;Hi, I'm new to splunk &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;This is my query: &lt;BR /&gt;
* Tagname="series" Wert="54" | JOIN _time [SEARCH Tagname="workload" ]  | CHART VALUES(Wert) BY _time *&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Goal:&lt;/STRONG&gt; &lt;BR /&gt;
The query above got me nearly 75% of my events. But sometimes the timestamp differs a little bit, so I need to have a &lt;STRONG&gt;tolerance range&lt;/STRONG&gt; with &lt;STRONG&gt;+/- 3 seconds for "_time"&lt;/STRONG&gt; . &lt;/P&gt;

&lt;P&gt;How can I achieve this?&lt;/P&gt;

&lt;P&gt;Thanks for your help, &lt;BR /&gt;
Bastian&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 10:11:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/JOIN-on-quot-time-3sec-quot/m-p/375202#M110244</guid>
      <dc:creator>BOstermeier</dc:creator>
      <dc:date>2018-02-14T10:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN on "_time +- 3sec"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/JOIN-on-quot-time-3sec-quot/m-p/375203#M110245</link>
      <description>&lt;P&gt;hello there, &lt;BR /&gt;
it is a little unclear to me if there are 3 fields: "key" "value" and "time" which are all fields, or there are more fields such as "named" which 'series' is a value of and andl "workload" is a field&lt;BR /&gt;
if the latter, try this search: &lt;CODE&gt;index=&amp;lt;your_index&amp;gt; sourcetype=&amp;lt;your_sourcetype&amp;gt; named="series" value="54" workload="*" | stats values(workload) as unique_workloads | mvexpand unique_workloads&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 11:19:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/JOIN-on-quot-time-3sec-quot/m-p/375203#M110245</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-02-14T11:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN on "_time +- 3sec"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/JOIN-on-quot-time-3sec-quot/m-p/375204#M110246</link>
      <description>&lt;P&gt;No there are not other fields. field1="workload" and field2="series"&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 11:56:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/JOIN-on-quot-time-3sec-quot/m-p/375204#M110246</guid>
      <dc:creator>BOstermeier</dc:creator>
      <dc:date>2018-02-14T11:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN on "_time +- 3sec"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/JOIN-on-quot-time-3sec-quot/m-p/375205#M110247</link>
      <description>&lt;P&gt;try searching &lt;CODE&gt;workload=* series=* | bin span=1m _time | stats values(workload) as unique_workloads by _time&lt;/CODE&gt; &lt;BR /&gt;
hope i understand the question ....&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 12:02:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/JOIN-on-quot-time-3sec-quot/m-p/375205#M110247</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-02-14T12:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN on "_time +- 3sec"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/JOIN-on-quot-time-3sec-quot/m-p/375206#M110248</link>
      <description>&lt;P&gt;Thanks for your answer adonio: I think you got me wrong workload and series are not fields...&lt;/P&gt;

&lt;P&gt;I have updated my question and also added a SQL Pseudocode. Do you understand it better now?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 14:35:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/JOIN-on-quot-time-3sec-quot/m-p/375206#M110248</guid>
      <dc:creator>BOstermeier</dc:creator>
      <dc:date>2018-02-21T14:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN on "_time +- 3sec"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/JOIN-on-quot-time-3sec-quot/m-p/375207#M110249</link>
      <description>&lt;P&gt;Could it be the same situation  that this one : to pick one event, then run a second search to find the events "around" that event.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/136791/use-a-subsearch-to-define-earliest-and-latest-for-main-search.html"&gt;https://answers.splunk.com/answers/136791/use-a-subsearch-to-define-earliest-and-latest-for-main-search.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 18:06:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/JOIN-on-quot-time-3sec-quot/m-p/375207#M110249</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2018-02-22T18:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN on "_time +- 3sec"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/JOIN-on-quot-time-3sec-quot/m-p/375208#M110250</link>
      <description>&lt;P&gt;That goes in the right direction - However it does not fully complete my needs, because it is filtering on a fix amount of results and only in a certain timespan. I want to get always and the timespan should only be respective to the results found in search 1. &lt;/P&gt;

&lt;P&gt;-&amp;gt; I have updated the question - I was able to get my results with a join (but not unfortunatly not all of them). Can you help here also? &lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 07:27:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/JOIN-on-quot-time-3sec-quot/m-p/375208#M110250</guid>
      <dc:creator>BOstermeier</dc:creator>
      <dc:date>2018-02-23T07:27:09Z</dc:date>
    </item>
  </channel>
</rss>

