<?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: Timechart with multiple where like statements in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-where-like-statements/m-p/515061#M144585</link>
    <description>&lt;P&gt;Thank you so much it worked!!!!&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/215670"&gt;@Nisha18789&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Aug 2020 20:23:54 GMT</pubDate>
    <dc:creator>Marco</dc:creator>
    <dc:date>2020-08-19T20:23:54Z</dc:date>
    <item>
      <title>Timechart with multiple where like statements</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-where-like-statements/m-p/514778#M144497</link>
      <description>&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;I'm trying to plot multiple values onto a time chart. These values are collected through a Where Like statement.&lt;/P&gt;&lt;P&gt;For Example:&lt;/P&gt;&lt;P&gt;host=* time&amp;nbsp;count(where like(COMMAND,"%&amp;nbsp; MKDIR%")) as "MKDIR", count(where like(COMMAND,"%&amp;nbsp; LS%")) as "LS", count(where like(COMMAND,"CHMOD")) as "CHMOD"&lt;/P&gt;&lt;P&gt;the output i'm getting is a blank time chart.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 21:29:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-where-like-statements/m-p/514778#M144497</guid>
      <dc:creator>Marco</dc:creator>
      <dc:date>2020-08-18T21:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with multiple where like statements</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-where-like-statements/m-p/514784#M144499</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224853"&gt;@Marco&lt;/a&gt;&amp;nbsp;have you tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;host=* COMMAND="* MKDIR*" OR&amp;nbsp; COMMAND="* LS*" OR COMMAND="*CHMOD*" | timechart&amp;nbsp; count by&amp;nbsp;COMMAND&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 22:19:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-where-like-statements/m-p/514784#M144499</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2020-08-18T22:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with multiple where like statements</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-where-like-statements/m-p/514959#M144552</link>
      <description>&lt;P&gt;That's a bit closer to what I was looking for except its plotting out users that issued the command versus the count of how many people issued each different command.&lt;/P&gt;&lt;P&gt;What i'm looking for is something more like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="samp.png" style="width: 813px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10376i37AA2AA13A424593/image-size/large?v=v2&amp;amp;px=999" role="button" title="samp.png" alt="samp.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 14:26:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-where-like-statements/m-p/514959#M144552</guid>
      <dc:creator>Marco</dc:creator>
      <dc:date>2020-08-19T14:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with multiple where like statements</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-where-like-statements/m-p/514973#M144556</link>
      <description>&lt;P&gt;ok, so it appears like the COMMAND field is not just containing the command but the user info as well who requested it ? If so, we can first extract a new field from the COMMAND field to separate out the commands and then perform a timechart on that. Can you share a few values of the COMMAND field?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 14:58:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-where-like-statements/m-p/514973#M144556</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2020-08-19T14:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with multiple where like statements</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-where-like-statements/m-p/514977#M144559</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224853"&gt;@Marco&lt;/a&gt;&amp;nbsp;, I have updated the query , could you try this and see it that works?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;...| eval MKDIR=If(Like(COMMAND,"%MKDIR%"),1,0),LS=if(Like(COMMAND,"% LS%"),1,0),CHMOD=if(Like(COMMAND,"%CHMOD%"),1,0)&lt;BR /&gt;| timechart sum(MKDIR) as MKDIR sum(LS) as LS sum(CHMOD) as CHMOD&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 18:59:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-where-like-statements/m-p/514977#M144559</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2020-08-19T18:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with multiple where like statements</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-where-like-statements/m-p/515046#M144573</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/215670"&gt;@Nisha18789&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Correct the Command field contains a whole string&lt;/P&gt;&lt;P&gt;ex:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN class="t a h"&gt;COMMAND&lt;/SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;SPAN class="t"&gt;Aug&lt;/SPAN&gt; &lt;SPAN class="t"&gt;18&lt;/SPAN&gt; &lt;SPAN class="t h"&gt;&lt;SPAN class="t"&gt;13:01:5&lt;/SPAN&gt;&lt;SPAN class="t"&gt;9&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;RMDIR (userid)&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="t"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN class="t a h"&gt;COMMAND&lt;/SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;SPAN class="t"&gt;Aug&lt;/SPAN&gt; &lt;SPAN class="t"&gt;18&lt;/SPAN&gt; &lt;SPAN class="t h"&gt;&lt;SPAN class="t"&gt;13:00&lt;/SPAN&gt;:&lt;SPAN class="t"&gt;04&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;MKDIR (JOHNDOE)&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="t"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN class="t a h"&gt;COMMAND&lt;/SPAN&gt;=&lt;SPAN&gt;"Aug 18 &lt;SPAN class="t h"&gt;13:00:06&amp;nbsp;&lt;/SPAN&gt;LS(SALLY)&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;COMMAND="Aug 18 &lt;SPAN class="t h"&gt;13:00:09&lt;/SPAN&gt; MKDIR (TOM)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Which is why I originally used the &lt;STRONG&gt;Where Like&lt;/STRONG&gt; functions&amp;nbsp; since in a way it searches the string to see if a part of the string matches the given parameters. Followed by the &lt;STRONG&gt;count&lt;/STRONG&gt; function to count each occurrence.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Unfortunately the solution you suggested gave me a blank time chart.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 18:34:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-where-like-statements/m-p/515046#M144573</guid>
      <dc:creator>Marco</dc:creator>
      <dc:date>2020-08-19T18:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with multiple where like statements</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-where-like-statements/m-p/515058#M144582</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224853"&gt;@Marco&lt;/a&gt;&amp;nbsp;, please try the updated query and let me know if that works.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 19:55:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-where-like-statements/m-p/515058#M144582</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2020-08-19T19:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with multiple where like statements</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-where-like-statements/m-p/515061#M144585</link>
      <description>&lt;P&gt;Thank you so much it worked!!!!&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/215670"&gt;@Nisha18789&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 20:23:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-where-like-statements/m-p/515061#M144585</guid>
      <dc:creator>Marco</dc:creator>
      <dc:date>2020-08-19T20:23:54Z</dc:date>
    </item>
  </channel>
</rss>

