<?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 eventtype in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eventtype/m-p/574930#M200346</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;- read through the documentation and tried search first as suggested and then timechart count by eventtype, it did not work. Not sure what i'm doing wrong. any help is appreciated. the eventtype that is present in every events is still present in the chart.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;eventtype=heartbeat namespace::my-namespace&lt;BR /&gt;| search eventtype=heartbeat&lt;BR /&gt;| timechart count by eventtype span=1m&lt;BR /&gt;```only want to see eventtype heartbeat```&lt;/P&gt;</description>
    <pubDate>Mon, 15 Nov 2021 14:23:50 GMT</pubDate>
    <dc:creator>noman377</dc:creator>
    <dc:date>2021-11-15T14:23:50Z</dc:date>
    <item>
      <title>Timechart with eventtype</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eventtype/m-p/574558#M200225</link>
      <description>&lt;P&gt;Hello, I am trying to timechart two event types ONLY: heartbeat and start.&amp;nbsp;&lt;BR /&gt;However, every event in our Splunk is also mapped as nix-all-logs and few other events by the system admin.&amp;nbsp;&lt;BR /&gt;Attached are screenshots.&amp;nbsp; How can I timechart these 2 event types only.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 894px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16817i79DF3E3E52935ADA/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16816iF3DBB3F69854C400/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 12:44:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eventtype/m-p/574558#M200225</guid>
      <dc:creator>noman377</dc:creator>
      <dc:date>2021-11-11T12:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with eventtype</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eventtype/m-p/574561#M200226</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.3/Knowledge/Abouteventtypes" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.3/Knowledge/Abouteventtypes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The important part here is that a single event can belong to multiple eventtypes.&lt;/P&gt;&lt;P&gt;So if you want to count only those eventtypes, you have to first search for them, and then filter the results to leave only those two entries.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 12:57:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eventtype/m-p/574561#M200226</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-11-11T12:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with eventtype</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eventtype/m-p/574930#M200346</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;- read through the documentation and tried search first as suggested and then timechart count by eventtype, it did not work. Not sure what i'm doing wrong. any help is appreciated. the eventtype that is present in every events is still present in the chart.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;eventtype=heartbeat namespace::my-namespace&lt;BR /&gt;| search eventtype=heartbeat&lt;BR /&gt;| timechart count by eventtype span=1m&lt;BR /&gt;```only want to see eventtype heartbeat```&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 14:23:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eventtype/m-p/574930#M200346</guid>
      <dc:creator>noman377</dc:creator>
      <dc:date>2021-11-15T14:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with eventtype</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eventtype/m-p/574955#M200349</link>
      <description>&lt;P&gt;Close, but not quite &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Try to understand what you're doing.&lt;/P&gt;&lt;P&gt;Firstly, you search for some events with eventtype=heartbeat. Now everything is ok.&lt;/P&gt;&lt;P&gt;Of those events some will have more than one eventtype.&lt;/P&gt;&lt;P&gt;Then you do&lt;/P&gt;&lt;PRE&gt;| search eventtype=heartbeat&lt;/PRE&gt;&lt;P&gt;Which effectively doesn't do anything at this point since all events you find in the previous step had eventtype=heartbeat. So you pass this stepp with your full set of resulting events of which some have more than one eventtype.&lt;/P&gt;&lt;P&gt;Then if you do the timechart by eventtypes of course all your eventtypes will get included in the results&lt;/P&gt;&lt;P&gt;What did you do wrong? You did a search in the wrong place.&lt;/P&gt;&lt;P&gt;You should have done stats first, so you get results for all eventtypes and _then_ search (in the resulting stats) for wanted eventtypes.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;eventtype=heartbeat namespace::my-namespace&lt;BR /&gt;| timechart count by eventtype span=1&lt;BR /&gt;| search eventtype=heartbeat&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Nov 2021 19:59:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eventtype/m-p/574955#M200349</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-11-15T19:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with eventtype</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eventtype/m-p/575257#M200455</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;- unfortunately, not able to make it work.&amp;nbsp; The eventtype that is present for every log is still showing up in events tab and timechart tab comes out empty.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="splunk_1.png" style="width: 877px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16890i86A5458807E357AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="splunk_1.png" alt="splunk_1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="splunk_2.png" style="width: 937px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16889i070B48B3949ADA1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="splunk_2.png" alt="splunk_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 12:10:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eventtype/m-p/575257#M200455</guid>
      <dc:creator>noman377</dc:creator>
      <dc:date>2021-11-17T12:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with eventtype</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eventtype/m-p/575259#M200456</link>
      <description>&lt;P&gt;Ahhh. Of course. Timechart renders the data as table with eventtypes as columns.&lt;/P&gt;&lt;P&gt;So in order to return only heartbeat eventtype you'd need to not | search but simply&lt;/P&gt;&lt;PRE&gt; | table _time heartbeat&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Nov 2021 12:47:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eventtype/m-p/575259#M200456</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-11-17T12:47:16Z</dc:date>
    </item>
  </channel>
</rss>

