<?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 search for three different actions: Browse, View, and Download? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190426#M54835</link>
    <description>&lt;P&gt;This should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search that finds all 3 logs&amp;gt; | rex "(?P&amp;lt;service&amp;gt;EmployeeDocumentServicesImp[l]?\.getDocument(?:PDF)?)\(.* Elapsed time:\s+-\s\[(?P&amp;lt;elapsedTime&amp;gt;[\d\.]+)\]" | table service elapsedTime
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 18 May 2015 19:19:02 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2015-05-18T19:19:02Z</dc:date>
    <item>
      <title>How to search for three different actions: Browse, View, and Download?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190425#M54834</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;First off I'd like to apologize for the lopsided question as I am kinda unsure of what I was asked to do! Alright, so Im going to post some logs and I need help from you guys to pull out some info from them. I need to pull out the bold text for all three logs, and was wondering if it was possible to put all of it into one search.&lt;/P&gt;

&lt;P&gt;I am trying to get EmployeeDocumentsServicesImp.getDocument() also with the Elapsed time.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2015 19:07:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190425#M54834</guid>
      <dc:creator>splunkman341</dc:creator>
      <dc:date>2015-05-18T19:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for three different actions: Browse, View, and Download?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190426#M54835</link>
      <description>&lt;P&gt;This should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search that finds all 3 logs&amp;gt; | rex "(?P&amp;lt;service&amp;gt;EmployeeDocumentServicesImp[l]?\.getDocument(?:PDF)?)\(.* Elapsed time:\s+-\s\[(?P&amp;lt;elapsedTime&amp;gt;[\d\.]+)\]" | table service elapsedTime
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 May 2015 19:19:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190426#M54835</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-05-18T19:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for three different actions: Browse, View, and Download?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190427#M54836</link>
      <description>&lt;P&gt;Hi Rich and thanks for your anwser. I tried to execute that search and got back an error message. The message is as follows:&lt;/P&gt;

&lt;P&gt;Error in 'search' command: Unable to parse the search: Comparator '&amp;lt;' has an invalid term on the left hand side.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2015 19:51:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190427#M54836</guid>
      <dc:creator>splunkman341</dc:creator>
      <dc:date>2015-05-18T19:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for three different actions: Browse, View, and Download?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190428#M54837</link>
      <description>&lt;P&gt;The first part of the search is a placeholder.  Since only you know how your data is stored, you need to fill in the &amp;lt;search that finds...&amp;gt; part.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2015 19:58:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190428#M54837</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-05-18T19:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for three different actions: Browse, View, and Download?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190429#M54838</link>
      <description>&lt;P&gt;So I tried to do as you said and this is my search :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=Doccloud_main sourcetype="doccloud-dit_sb" | rex "(?P&amp;amp;lt;service&amp;amp;gt;EmployeeDocumentServicesImp[l]?\.getDocument(?:PDF)?)\(.* Elapsed time:\s+-\s\[(?P&amp;amp;lt;elapsedTime&amp;amp;gt;[\d\.]+)\]" | table service elapsedTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It works, but it only disp;lays getDocument and getDocument PDF in a weird format. I was wondering if i could convert this data to display into a graph as I wanted to include it into the dashboard.  I also want to include a search for EmployeeDocumentServceImp.listDocuments(). &lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2015 14:01:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190429#M54838</guid>
      <dc:creator>splunkman341</dc:creator>
      <dc:date>2015-05-20T14:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for three different actions: Browse, View, and Download?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190430#M54839</link>
      <description>&lt;P&gt;To get a graph, replace the table command with &lt;CODE&gt;chart avg(elapsedTime) by service&lt;/CODE&gt; or &lt;CODE&gt;timechart values(elapsedTime) by service&lt;/CODE&gt;.&lt;BR /&gt;
To add the new service, change the rex string to &lt;CODE&gt;"(?P&amp;amp;lt;service&amp;amp;gt;EmployeeDocumentServicesImp[l]?\.getDocument(?:PDF)?|EmployeeDocumentServicesImp\.listDocuments)\(.* Elapsed time:\s+-\s\[(?P&amp;amp;lt;elapsedTime&amp;amp;gt;[\d\.]+)\]"&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2015 14:12:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190430#M54839</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-05-20T14:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for three different actions: Browse, View, and Download?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190431#M54840</link>
      <description>&lt;P&gt;So I tried entering in the same which you just told me about, and got the same results as before. The results in a table going from 1-53 and not displaying anything after that. The search is :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=doccloud_main sourcetype="doccloud-dit_sb" | rex "(?P&amp;amp;lt;service&amp;amp;gt;EmployeeDocumentServicesImp[l]?\.getDocument(?:PDF)?|EmployeeDocumentServicesImp\.listDocuments)\(.* Elapsed time:\s+-\s\[(?P&amp;amp;lt;elapsedTime&amp;amp;gt;[\d\.]+)\]"| chart avg(elapsedTime) by service
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 May 2015 14:22:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190431#M54840</guid>
      <dc:creator>splunkman341</dc:creator>
      <dc:date>2015-05-20T14:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for three different actions: Browse, View, and Download?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190432#M54841</link>
      <description>&lt;P&gt;Have you clicked the Visualizations tab?&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2015 14:32:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190432#M54841</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-05-20T14:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for three different actions: Browse, View, and Download?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190433#M54842</link>
      <description>&lt;P&gt;So it is displaying getDocument and getDocument PDF, but it is not listing listDocuments.  Here is the code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=doccloud_main sourcetype="doccloud-dit_sb" | rex "(?P&amp;amp;lt;service&amp;amp;gt;EmployeeDocumentServicesImp[l]?\.getDocument(?:PDF)?|EmployeeDocumentServicesImp\.listDocuments)\(.* Elapsed time:\s+-\s\[(?P&amp;amp;lt;elapsedTime&amp;amp;gt;[\d\.]+)\]" | timechart values(elapsedTime) by service
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 May 2015 15:20:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190433#M54842</guid>
      <dc:creator>splunkman341</dc:creator>
      <dc:date>2015-05-21T15:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for three different actions: Browse, View, and Download?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190434#M54843</link>
      <description>&lt;P&gt;Carefully compare the service names in your data with the names in the regex.  Perhaps you need to change &lt;CODE&gt;Imp\.listDocuments&lt;/CODE&gt; to &lt;CODE&gt;Imp[l]?\.listDocuments&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2015 15:31:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190434#M54843</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-05-21T15:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for three different actions: Browse, View, and Download?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190435#M54844</link>
      <description>&lt;P&gt;Yup!  That was the last leg! Thanks alot &lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2015 15:36:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190435#M54844</guid>
      <dc:creator>splunkman341</dc:creator>
      <dc:date>2015-05-21T15:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for three different actions: Browse, View, and Download?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190436#M54845</link>
      <description>&lt;P&gt;You're welcome.  Please accept the answer.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2015 15:38:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-three-different-actions-Browse-View-and/m-p/190436#M54845</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-05-21T15:38:07Z</dc:date>
    </item>
  </channel>
</rss>

