<?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: Can we create a vacation tracker in Splunk? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393064#M173783</link>
    <description>&lt;P&gt;@rpradeep, I have corrected the query. I had taken it from run anywhere example which comes with the app. Please refer to the updated query above.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2019 16:20:26 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2019-03-05T16:20:26Z</dc:date>
    <item>
      <title>Can we create a vacation tracker in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393047#M173766</link>
      <description>&lt;P&gt;We use Splunk for many of our project dashboards &amp;amp; want to see if I can use the same setup to host a Vacation Tracker of my team.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 09:03:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393047#M173766</guid>
      <dc:creator>rpradeep</dc:creator>
      <dc:date>2019-01-07T09:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a vacation tracker in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393048#M173767</link>
      <description>&lt;P&gt;Should be relativly easy.&lt;BR /&gt;
Take a look at the following two visualizations to see if either fits your requirements:&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/3372/"&gt;https://splunkbase.splunk.com/app/3372/&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/3162/"&gt;https://splunkbase.splunk.com/app/3162/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 09:46:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393048#M173767</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2019-01-07T09:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a vacation tracker in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393049#M173768</link>
      <description>&lt;P&gt;Thanks Nickhill.&lt;BR /&gt;
I have downloaded the app &amp;amp; installed it. I am still trying to figure out how to feed data to it.&lt;BR /&gt;
Will be great if you can guide me to any such tutorial.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 11:27:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393049#M173768</guid>
      <dc:creator>rpradeep</dc:creator>
      <dc:date>2019-01-07T11:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a vacation tracker in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393050#M173769</link>
      <description>&lt;P&gt;Where does your vacation information come from - do you have the data already in Splunk?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 14:33:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393050#M173769</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2019-01-07T14:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a vacation tracker in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393051#M173770</link>
      <description>&lt;P&gt;No, I do not already have data in Splunk. Sorry for not giving this information already.&lt;BR /&gt;
Currently I am planning to feed the data from a tab-separated-file, with example format below:&lt;/P&gt;

&lt;P&gt;Emp_name   Vacation_Start_date   Vacation_End_date&lt;BR /&gt;
abc                 2019-01-15                   2019-01-29&lt;/P&gt;

&lt;P&gt;I can either get this data updated by manual entries to the file or via some interactive UI.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:36:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393051#M173770</guid>
      <dc:creator>rpradeep</dc:creator>
      <dc:date>2020-09-29T22:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a vacation tracker in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393052#M173771</link>
      <description>&lt;P&gt;I installed Calendar Heat Map app on my local, it works like a charm. Installing it on the central server soon, this will surely help visualising time based events, especially for management who are often looking for something visually resembling the old world.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 07:40:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393052#M173771</guid>
      <dc:creator>ramgnisiv</dc:creator>
      <dc:date>2019-01-08T07:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a vacation tracker in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393053#M173772</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/91848"&gt;@rpradeep&lt;/a&gt;,&lt;/P&gt;

&lt;P&gt;I have tried with some different data, It is able to show number of employees on leave for a specific day. I don't know is it going to help you or not. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Step 1: Data Generation :&lt;/STRONG&gt; I have used below search query to generate Dummy Data. &lt;BR /&gt;
&lt;STRONG&gt;Changes:&lt;/STRONG&gt; &lt;BR /&gt;
        I  have used 2 columns - Employee Name(&lt;STRONG&gt;Emp_Name&lt;/STRONG&gt;) and Date on which he will be on leave (&lt;STRONG&gt;OnVacation&lt;/STRONG&gt;).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
 | eval data="abc 2019-01-15;abc 2019-01-16;abc 2019-01-17;abc 2019-01-18;abc 2019-01-19;abc 2019-01-20;abc 2019-01-21;prq 2019-01-12;prq 2019-01-13;prq 2019-01-14;xyz 2019-01-02;mnp 2019-01-17;" 
 | makemv data delim=";" 
 | mvexpand data 
 | makemv data delim=" " 
 | eval Emp_name=mvindex(data,0),OnVacation=mvindex(data,1)
 | table Emp_name,OnVacation
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Step 2:&lt;/STRONG&gt; &lt;BR /&gt;
1. Convert the OnVacation date to _time (event Time) &lt;BR /&gt;
2. Draw timechart on the span of 1 day over a distinct count of Emp_name.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | eval _time=strptime(OnVacation,"%Y-%m-%d")
 | timechart span=1d dc(Emp_name) as "Emp on Leave"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;PS:&lt;/STRONG&gt; To use calendar visualization, you need to use &lt;CODE&gt;timechart&lt;/CODE&gt; commnad over a span. Please refer below documentation for &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/SearchReference/Timechart" target="_blank"&gt;timechart&lt;/A&gt;. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:40:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393053#M173772</guid>
      <dc:creator>askkawalkar</dc:creator>
      <dc:date>2020-09-29T22:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a vacation tracker in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393054#M173773</link>
      <description>&lt;P&gt;I started to work on something like this too, but I think you nailed it!&lt;/P&gt;

&lt;P&gt;If you want to see who (not just how many) is on leave, replace the last line in @askkawalkar's step 2 with | &lt;CODE&gt;timechart span=1d count by Emp_name&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 09:51:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393054#M173773</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2019-01-08T09:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a vacation tracker in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393055#M173774</link>
      <description>&lt;P&gt;Thanks a lot askhkawalkar &amp;amp; nickhillscpl. I am now able to see the calendar with names on.&lt;BR /&gt;
Now, the next challenge for me is to find a way to mark all the dates from Start_date to End_date as vacation. Please share inputs if you already have any.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:36:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393055#M173774</guid>
      <dc:creator>rpradeep</dc:creator>
      <dc:date>2020-09-29T22:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a vacation tracker in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393056#M173775</link>
      <description>&lt;P&gt;Hi Guys,&lt;BR /&gt;
No luck yet in marking all the dates from Start_date to End_date as vacation in the calendar.&lt;BR /&gt;
I know it got something to do with span function in timechart but not able to decode.&lt;BR /&gt;
Please help.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:32:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393056#M173775</guid>
      <dc:creator>rpradeep</dc:creator>
      <dc:date>2020-09-29T23:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a vacation tracker in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393057#M173776</link>
      <description>&lt;P&gt;@rpradeep  can you please share screen shot with error, it will be easy to understand. &lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 12:58:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393057#M173776</guid>
      <dc:creator>askkawalkar</dc:creator>
      <dc:date>2019-03-04T12:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a vacation tracker in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393058#M173777</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/148093"&gt;@askkawalkar&lt;/a&gt; , there is no error as such.&lt;BR /&gt;
When I give input as "Pradeep,01-Apr-2019,05-Apr-2019,Vacation", my requirement is all the dates from 1st April to 5th April be marked in the calendar. Currently, I am able to mark only the start date(1st April) in my calendar using below query.&lt;BR /&gt;
&lt;EM&gt;eval _time=strptime(Start_date,"%d-%b-%Y") &lt;BR /&gt;
| timechart span=1d count by Emp_Name&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Right now I am unable to attach any file/screenshot, it says I need more karma points!!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:29:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393058#M173777</guid>
      <dc:creator>rpradeep</dc:creator>
      <dc:date>2020-09-29T23:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a vacation tracker in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393059#M173778</link>
      <description>&lt;P&gt;@rpradeep after ensuring that you mask out any sensitive information from the image, you can upload the same to any image sharing site such as &lt;CODE&gt;imgur&lt;/CODE&gt; and post a link to image using &lt;CODE&gt;Image button or shortcut Ctrl+G&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 04:25:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393059#M173778</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-03-05T04:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a vacation tracker in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393060#M173779</link>
      <description>&lt;P&gt;@rpradeep , To use above solution, if you are trying to show vacation from 01-Apr-2019 to 05-Apr-2019, you need to have 5 rows in your data as below - &lt;BR /&gt;
    Pradeep,01-Apr-2019&lt;BR /&gt;
    Pradeep,02-Apr-2019&lt;BR /&gt;
    Pradeep,03-Apr-2019&lt;BR /&gt;
    Pradeep,04-Apr-2019&lt;BR /&gt;
    Pradeep,05-Apr-2019&lt;/P&gt;

&lt;P&gt;this will show you required details over a dashboard. &lt;BR /&gt;
I am not sure how to help you out in changing the data format.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 05:36:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393060#M173779</guid>
      <dc:creator>askkawalkar</dc:creator>
      <dc:date>2019-03-05T05:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a vacation tracker in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393061#M173780</link>
      <description>&lt;P&gt;@rpradeep  on a different note try the &lt;A href="https://splunkbase.splunk.com/app/3120/"&gt;Splunk Timeline Custom Visualization&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6346i0CC1074AB6966DC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Following is a run anywhere query which you can try.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval data="abc 2019-01-15 2019-01-20;cde 2019-02-04 2019-02-14;efg 2019-03-05 2019-03-10;"
| makemv data delim=";"
| mvexpand data
| makemv data delim=" "
| eval "employee"=mvindex(data,0), start_date=mvindex(data,1), end_date=mvindex(data,2)
| eval _time = strptime(start_date, "%Y-%m-%d") 
| eval end_time = strptime(end_date, "%Y-%m-%d") 
| eval duration = (end_time - _time) * 1000
| stats count by _time, duration, employee 
| table _time employee duration
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Mar 2019 05:44:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393061#M173780</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-03-05T05:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a vacation tracker in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393062#M173781</link>
      <description>&lt;P&gt;Thanks @askkawalkar .&lt;BR /&gt;
Yes, I thought of this option &amp;amp; already working parallelly on it. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
But I just wanted to get rid of this additional step.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 06:57:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393062#M173781</guid>
      <dc:creator>rpradeep</dc:creator>
      <dc:date>2019-03-05T06:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a vacation tracker in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393063#M173782</link>
      <description>&lt;P&gt;Thanks @niketnilay , this looks amazing too.&lt;BR /&gt;
Although, I am not able to understand the logic behind &lt;EM&gt;1000&lt;/EM&gt;(random()%5). Without this I am not getting exact results.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 06:59:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393063#M173782</guid>
      <dc:creator>rpradeep</dc:creator>
      <dc:date>2019-03-05T06:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a vacation tracker in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393064#M173783</link>
      <description>&lt;P&gt;@rpradeep, I have corrected the query. I had taken it from run anywhere example which comes with the app. Please refer to the updated query above.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 16:20:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393064#M173783</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-03-05T16:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a vacation tracker in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393065#M173784</link>
      <description>&lt;P&gt;Perfect now.&lt;BR /&gt;
Thanks a lot @niketnilay  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 06:58:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-create-a-vacation-tracker-in-Splunk/m-p/393065#M173784</guid>
      <dc:creator>rpradeep</dc:creator>
      <dc:date>2019-03-06T06:58:43Z</dc:date>
    </item>
  </channel>
</rss>

