<?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: eventtypes identification in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/eventtypes-identification/m-p/66740#M16618</link>
    <description>&lt;P&gt;i have used this . but then its displaying all the eventtypes .but i need only specfic eventtypes to display..ie the eventtypes which are involved for that particular search query&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jun 2012 09:09:36 GMT</pubDate>
    <dc:creator>rakesh_498115</dc:creator>
    <dc:date>2012-06-05T09:09:36Z</dc:date>
    <item>
      <title>eventtypes identification</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eventtypes-identification/m-p/66738#M16616</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I have created 21 eventypes for my requirement.In tat 21 eventypes when i write a query only few eventtypes are involved . how do we indentify those eventtypes ?? and after identifying the eventtypes i need to print a table which shows the time duration taken for each eventype.&lt;/P&gt;

&lt;P&gt;for Example assuse I have 21 eventtypes with names A,B,C,D...U .My requirement is i need to pass a searchparameter to a searchquery , which on excuting only involves few eventypes ..i need to indentify them and print the dimension duration spent for each eventype.assue A,B and D are the eventtypes involved for my searchquery with the given searchparameter value..&lt;/P&gt;

&lt;P&gt;Now i need the table like this.&lt;/P&gt;

&lt;P&gt;SearchParameter     A   B   D&lt;/P&gt;

&lt;P&gt;AAA                 34  45  45&lt;/P&gt;

&lt;P&gt;where A,B,D are the involved eventypes for the searchquery with searchparameter "AAA" and 34,45,45 are the duration time in secs spent at eventtype..Please reply asap.Thnx in advance..&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2012 10:18:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eventtypes-identification/m-p/66738#M16616</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-06-04T10:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: eventtypes identification</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eventtypes-identification/m-p/66739#M16617</link>
      <description>&lt;P&gt;Here is a possible starting point, updated based on first comment:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere |
eval etype = case(eventtype=="eventtype1","eventtype1",eventtype="eventtype2","eventtype2") |
stats count by etype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This creates a new field called etype, which is set to one of the applicable eventtypes. This will work great, if you are only interested in a few of the eventtypes, and if the eventtypes do not overlap.&lt;/P&gt;

&lt;P&gt;However, this does not calculate a "duration." You didn't give enough information for me to suggest how to do that.&lt;/P&gt;

&lt;P&gt;I would suggest that you work this through with a particular search parameter, and when you are happy with the output - save the search as a macro. As a macro, you could do the parameter substitution that I think you ultimately want.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2012 20:06:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eventtypes-identification/m-p/66739#M16617</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-06-04T20:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: eventtypes identification</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eventtypes-identification/m-p/66740#M16618</link>
      <description>&lt;P&gt;i have used this . but then its displaying all the eventtypes .but i need only specfic eventtypes to display..ie the eventtypes which are involved for that particular search query&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2012 09:09:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eventtypes-identification/m-p/66740#M16618</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-06-05T09:09:36Z</dc:date>
    </item>
  </channel>
</rss>

