<?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 automate timechart for multiple users/fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471627#M132683</link>
    <description>&lt;P&gt;Helo @woodcock&lt;/P&gt;

&lt;P&gt;Thank you VERY much for the help, that is awesome...&lt;BR /&gt;
Is there a way to make the bars thicker?&lt;BR /&gt;
&lt;IMG src="https://imgur.com/Hg7YnU2" alt="alt text" /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2019 15:53:11 GMT</pubDate>
    <dc:creator>mitsost</dc:creator>
    <dc:date>2019-11-05T15:53:11Z</dc:date>
    <item>
      <title>How to automate timechart for multiple users/fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471614#M132670</link>
      <description>&lt;P&gt;Greetings all,&lt;BR /&gt;
Noob here.&lt;/P&gt;

&lt;P&gt;I have the following timechart:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=fileshare user_login=john_doe@mycompany.com (event_type=SHARE OR event_type=EDIT OR event_type=UPLOAD OR event_type=DOWNLOAD OR event_type=DELETE) 
    | timechart span=1mon@mon count by event_type
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Time range is 4 months&lt;/P&gt;

&lt;P&gt;I would like to do the same for about 100 users (i.e. 100 "user_login" addresses).&lt;/P&gt;

&lt;P&gt;Basically, I would like something like this but with multiple rows:&lt;BR /&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/7871iCADE660556D6D4C7/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;Do you have any ideas on how I can automate it? &lt;BR /&gt;
Maybe a trellis chart?&lt;/P&gt;

&lt;P&gt;I tried &lt;BR /&gt;
&lt;CODE&gt;index=fileshare created_by_login IN (john_doe@mycompany.com, jane_smith@mycompany.com... etc etc ) (event_type=SHARE OR event_type=EDIT OR event_type=UPLOAD OR event_type=DOWNLOAD OR event_type=DELETE) &lt;BR /&gt;
| stats count by created_by_login, date_month, event_type&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But the separate colors for events are not shown in each month - any ideas?&lt;BR /&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/7872iDA59EC155C781C04/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;Thank you&lt;BR /&gt;
Mitsos&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 20:25:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471614#M132670</guid>
      <dc:creator>mitsost</dc:creator>
      <dc:date>2019-10-29T20:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate timechart for multiple users/fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471615#M132671</link>
      <description>&lt;P&gt;What exactly are you trying to do here? How are you going to interpret the data? What's the purpose of wanting to run this on a per user basis? Whats wrong with adding the &lt;CODE&gt;user_login&lt;/CODE&gt; as an additional feature after the &lt;CODE&gt;by&lt;/CODE&gt; and changing it to a stats? &lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 22:05:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471615#M132671</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2019-10-29T22:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate timechart for multiple users/fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471616#M132672</link>
      <description>&lt;P&gt;Thanks for replying @skoelpin &lt;/P&gt;

&lt;P&gt;The idea is to have a dashboard with a stack of charts in alphabetical order (of email) so that one can scroll and see the usage trends of any one of the set of users.&lt;/P&gt;

&lt;P&gt;I tried adding an image here to show you but I couldn't - will try in a regular reply...&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 01:23:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471616#M132672</guid>
      <dc:creator>mitsost</dc:creator>
      <dc:date>2019-10-30T01:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate timechart for multiple users/fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471617#M132673</link>
      <description>&lt;P&gt;I added the image in the main question... &lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 01:29:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471617#M132673</guid>
      <dc:creator>mitsost</dc:creator>
      <dc:date>2019-10-30T01:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate timechart for multiple users/fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471618#M132674</link>
      <description>&lt;P&gt;You need the &lt;CODE&gt;trellis&lt;/CODE&gt; feature:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/VisualizationTrellis"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Viz/VisualizationTrellis&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 01:52:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471618#M132674</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-30T01:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate timechart for multiple users/fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471619#M132675</link>
      <description>&lt;P&gt;Hi @woodcock &lt;/P&gt;

&lt;P&gt;I tried the following:&lt;BR /&gt;
&lt;CODE&gt;index=fileshare created_by_login IN (john_doe@mycompany.com, jane_smith@mycompany.com) (event_type=SHARE OR event_type=EDIT OR event_type=UPLOAD OR event_type=DOWNLOAD OR event_type=DELETE) &lt;BR /&gt;
| stats count by created_by_login, date_month, event_type&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;But the trellis visualization does not show all the different events by month... See above - I will add the image there&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 02:13:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471619#M132675</guid>
      <dc:creator>mitsost</dc:creator>
      <dc:date>2019-10-31T02:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate timechart for multiple users/fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471620#M132676</link>
      <description>&lt;P&gt;I think you're going down the wrong path here.. You should not have 100 panels in a dashboard, this is not  a scalable solution and is difficult to interpret for a human. Why not have a single graph with 100 lines? Or perhaps even group them. &lt;/P&gt;

&lt;P&gt;What exactly are you looking to interpret from this information? Are you looking for anomalous file-sharing usage per person? &lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 14:24:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471620#M132676</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2019-10-31T14:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate timechart for multiple users/fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471621#M132677</link>
      <description>&lt;P&gt;Hi @skoelpin - yes, I think I agree with you in terms of the number of panels in the dashboard.&lt;/P&gt;

&lt;P&gt;The goal is for upper management to see that these VIPs have started using the file sharing solution more and more as time goes by. Especially the "share" action which means they created a link to a file (which, one can assume, means they did not attach the file as an email attachment--we are trying to move away from email attachments). So, these individuals are high enough in the company that their behavior can trickle down to others... So they have gone through trainings and we are hoping to see an increase in their use of the file-sharing tool. It may not be 100, it can be 10 at each dashboard...&lt;/P&gt;

&lt;P&gt;Thanks again for the input!!&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 14:45:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471621#M132677</guid>
      <dc:creator>mitsost</dc:creator>
      <dc:date>2019-10-31T14:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate timechart for multiple users/fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471622#M132678</link>
      <description>&lt;P&gt;Gotcha, so the end result you want is the ability to show growth in usage on a per user basis relative to time. Perhaps a better way would be to schedule a daily or weekly report which will list each user per row and show the increase in usage relative to the previous week. An example would look like this &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE&gt;User         | Percent Increase in Usage

John Doe | +30%
Jane Doe | +13%
Steve Jobs | -4%
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;You could even sort it from least to greatest if you want a quick overview of the people who are not trending in the right direction. Overtime as more people get used to the new way of using the file share, you will see these numbers level out and get closer to zero, similarly how'd you see the bar graphs level out in a dashboard view. You could even add a secondary dashboard view which has one panel with 100 lines where each line represents each user and get a visual that way. If you want to go this direction, I can certainly help with that&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 15:16:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471622#M132678</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2019-10-31T15:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate timechart for multiple users/fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471623#M132679</link>
      <description>&lt;P&gt;Do not use the &lt;CODE&gt;date_*&lt;/CODE&gt; fields; do it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="fileshare" AND created_by_login IN ("john_doe@mycompany.com", "jane_smith@mycompany.com") AND (event_type IN("SHARE", "EDIT, "UPLOAD", "DOWNLOAD", "DELETE")
| bin _time span=1m
| timechart count(eval(event_type="SHARE")) AS SHARE count(eval(event_type="EDIT")) AS EDIT count(eval(event_type="UPLOAD")) AS UPLOAD count(eval(event_type="=DOWNLOAD")) AS DOWNLOAD count(eval(event_type="DELETE")) AS DELETE BY created_by_login
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then select &lt;CODE&gt;trellis&lt;/CODE&gt; by &lt;CODE&gt;created_by_login&lt;/CODE&gt; and enjoy!&lt;BR /&gt;
Here is a run-anywhere example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_* 
| bin _time span=1m
| rename host AS created_by_login, sourcetype AS event_type 
| eval sourcetype = case(
   sourcetype=="splunkd",               "SHARE",
   sourcetype=="splunk_resource_usage", "EDIT",
   sourcetype=="splunkd_access",        "UPLOAD",
   sourcetype=="threatintel:manager",   "DOWNLOAD", 
   true(),                              "DELETE")
| timechart count(eval(event_type="SHARE")) AS SHARE count(eval(event_type="EDIT")) AS EDIT count(eval(event_type="UPLOAD")) AS UPLOAD count(eval(event_type="=DOWNLOAD")) AS DOWNLOAD count(eval(event_type="DELETE")) AS DELETE BY created_by_login
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Oct 2019 21:13:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471623#M132679</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-31T21:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate timechart for multiple users/fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471624#M132680</link>
      <description>&lt;P&gt;Hi @skoelpin  - thanks for replying&lt;BR /&gt;
The idea is to track the usage of a file-sharing solution for these 100 (approx. number) individuals over the past four months. &lt;/P&gt;

&lt;P&gt;So I would like a dashboard that has multiple rows like this, sorted alphabetically - so it can give a snapshot for each user:&lt;BR /&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/7870iFE1819F46E3DEA7D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 21:13:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471624#M132680</guid>
      <dc:creator>mitsost</dc:creator>
      <dc:date>2019-10-31T21:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate timechart for multiple users/fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471625#M132681</link>
      <description>&lt;P&gt;See my new answer; I built out the entire solution for you.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2019 19:28:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471625#M132681</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-02T19:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate timechart for multiple users/fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471626#M132682</link>
      <description>&lt;P&gt;This is &lt;EM&gt;exactly&lt;/EM&gt; what my solution does; have you tried it yet?&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2019 19:28:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471626#M132682</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-02T19:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate timechart for multiple users/fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471627#M132683</link>
      <description>&lt;P&gt;Helo @woodcock&lt;/P&gt;

&lt;P&gt;Thank you VERY much for the help, that is awesome...&lt;BR /&gt;
Is there a way to make the bars thicker?&lt;BR /&gt;
&lt;IMG src="https://imgur.com/Hg7YnU2" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 15:53:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471627#M132683</guid>
      <dc:creator>mitsost</dc:creator>
      <dc:date>2019-11-05T15:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate timechart for multiple users/fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471628#M132684</link>
      <description>&lt;P&gt;Here is what it looks like now:&lt;BR /&gt;
&lt;A href="https://www.dropbox.com/s/vonbwnsgwnbb5y6/Image%20092.png?dl=0"&gt;https://www.dropbox.com/s/vonbwnsgwnbb5y6/Image%20092.png?dl=0&lt;/A&gt;&lt;BR /&gt;
&lt;IMG src="https://www.dropbox.com/s/vonbwnsgwnbb5y6/Image%20092.png?dl=0" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 15:58:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471628#M132684</guid>
      <dc:creator>mitsost</dc:creator>
      <dc:date>2019-11-05T15:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate timechart for multiple users/fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471629#M132685</link>
      <description>&lt;P&gt;As your data span is monthly, either try  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| bin _time span=1mon
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or within the timechart command pipe put the following argument at the end.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; cont=f
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Nov 2019 16:12:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471629#M132685</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-11-05T16:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate timechart for multiple users/fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471630#M132686</link>
      <description>&lt;P&gt;cont=f worked!!&lt;BR /&gt;
THank you !!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 18:04:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471630#M132686</guid>
      <dc:creator>mitsost</dc:creator>
      <dc:date>2019-11-05T18:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate timechart for multiple users/fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471631#M132687</link>
      <description>&lt;P&gt;Much appreciated!!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 18:05:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471631#M132687</guid>
      <dc:creator>mitsost</dc:creator>
      <dc:date>2019-11-05T18:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate timechart for multiple users/fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471632#M132688</link>
      <description>&lt;P&gt;You can select &lt;CODE&gt;small&lt;/CODE&gt;, &lt;CODE&gt;medium&lt;/CODE&gt; or &lt;CODE&gt;large&lt;/CODE&gt; panels and that it about it, as far as I know.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 22:15:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471632#M132688</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-05T22:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate timechart for multiple users/fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471633#M132689</link>
      <description>&lt;P&gt;Also change &lt;CODE&gt;Yaxis&lt;/CODE&gt; from &lt;CODE&gt;linear&lt;/CODE&gt; to &lt;CODE&gt;log&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 23:43:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automate-timechart-for-multiple-users-fields/m-p/471633#M132689</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-05T23:43:49Z</dc:date>
    </item>
  </channel>
</rss>

