<?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: Getting the number of parallel intervals in timechart from start and end event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Getting-the-number-of-parallel-intervals-in-timechart-from-start/m-p/184183#M53065</link>
    <description>&lt;P&gt;Getting closer, I fixed your statement to:&lt;BR /&gt;
sourcetype="tracker logs" join=&lt;EM&gt;join&lt;/EM&gt; OR join=&lt;EM&gt;leave&lt;/EM&gt; | eval users=if(join=="&lt;EM&gt;join&lt;/EM&gt;",1,-1) | accum users| timechart max(users)&lt;/P&gt;

&lt;P&gt;but looks like it doesn't match the join field to the value &lt;EM&gt;join&lt;/EM&gt;&lt;BR /&gt;
the values that the join field gets are either "join":true or "leave":true&lt;/P&gt;</description>
    <pubDate>Wed, 29 Oct 2014 15:08:15 GMT</pubDate>
    <dc:creator>shacharz</dc:creator>
    <dc:date>2014-10-29T15:08:15Z</dc:date>
    <item>
      <title>Getting the number of parallel intervals in timechart from start and end event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-the-number-of-parallel-intervals-in-timechart-from-start/m-p/184181#M53063</link>
      <description>&lt;P&gt;I have an event for a user that joins the system and an even for a user that leaves that system.&lt;BR /&gt;
I want to create a timechart that will show how many users I had in my system along a time window.&lt;BR /&gt;
This is for example how I timechart the join events:&lt;BR /&gt;
sourcetype="tracker logs" join = &lt;EM&gt;join&lt;/EM&gt; | timechart dc(peerId)&lt;BR /&gt;
and similiarly for leave: sourcetype="tracker logs" join = &lt;EM&gt;leave&lt;/EM&gt; | timechart dc(peerId)&lt;BR /&gt;
But how do I substract those who leave from those who joined?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 10:43:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-the-number-of-parallel-intervals-in-timechart-from-start/m-p/184181#M53063</guid>
      <dc:creator>shacharz</dc:creator>
      <dc:date>2014-10-29T10:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the number of parallel intervals in timechart from start and end event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-the-number-of-parallel-intervals-in-timechart-from-start/m-p/184182#M53064</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="tracker logs" join="join" OR join="leave" | eval users=if(join="join",1,-1) | accum users| timechart max(users) 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Oct 2014 14:49:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-the-number-of-parallel-intervals-in-timechart-from-start/m-p/184182#M53064</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-10-29T14:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the number of parallel intervals in timechart from start and end event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-the-number-of-parallel-intervals-in-timechart-from-start/m-p/184183#M53065</link>
      <description>&lt;P&gt;Getting closer, I fixed your statement to:&lt;BR /&gt;
sourcetype="tracker logs" join=&lt;EM&gt;join&lt;/EM&gt; OR join=&lt;EM&gt;leave&lt;/EM&gt; | eval users=if(join=="&lt;EM&gt;join&lt;/EM&gt;",1,-1) | accum users| timechart max(users)&lt;/P&gt;

&lt;P&gt;but looks like it doesn't match the join field to the value &lt;EM&gt;join&lt;/EM&gt;&lt;BR /&gt;
the values that the join field gets are either "join":true or "leave":true&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 15:08:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-the-number-of-parallel-intervals-in-timechart-from-start/m-p/184183#M53065</guid>
      <dc:creator>shacharz</dc:creator>
      <dc:date>2014-10-29T15:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the number of parallel intervals in timechart from start and end event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-the-number-of-parallel-intervals-in-timechart-from-start/m-p/184184#M53066</link>
      <description>&lt;P&gt;Looks like this works:&lt;BR /&gt;
sourcetype="tracker logs" join=&lt;EM&gt;join&lt;/EM&gt; OR join=&lt;EM&gt;leave&lt;/EM&gt; | eval users=if(match(join,"join"),1,-1) | accum users| timechart max(users)&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 15:20:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-the-number-of-parallel-intervals-in-timechart-from-start/m-p/184184#M53066</guid>
      <dc:creator>shacharz</dc:creator>
      <dc:date>2014-10-29T15:20:03Z</dc:date>
    </item>
  </channel>
</rss>

