<?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 how many documents were created, updated, or deleted for each OOID in my data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-how-many-documents-were-created-updated-or-deleted/m-p/131507#M35878</link>
    <description>&lt;P&gt;You should be able to select the past 7 days in the time range selector and your search above would do just great. But if you want to show day-by-day results in a chart - that's a problem. Splunk can only do two dimensional charts - and you already have 2 dimensions: OOID and action.&lt;/P&gt;

&lt;P&gt;There is a way around it - combine OOID and action into a single field.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype=doccloud_catalina "Document workspace"
 | rex "(?created|updated|deleted|removed) for OOID:(?\S+?),"
 | eval series = OOID + ":" + action
 | bucket span=1d _time
 | chart count by series _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It's a bit of a chore here to identify the top 5 OOIDs - I am still thinking about that - my first idea was a bust.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Apr 2015 18:33:00 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2015-04-10T18:33:00Z</dc:date>
    <item>
      <title>How to search how many documents were created, updated, or deleted for each OOID in my data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-how-many-documents-were-created-updated-or-deleted/m-p/131500#M35871</link>
      <description>&lt;P&gt;Hi guys!&lt;/P&gt;

&lt;P&gt;So I am building on some of the previous anwsers I got, but I want to get even more specific now and can't find guidance from the documentation. So I have a simple search already :&lt;/P&gt;

&lt;P&gt;Please notice the bold text outlines what I'm about to explain what I need to be done. The current code above returns a ton of different "OOID"'s , so what I want to do is to create a search which returns how many documents were either created, updated, or deleted for EACH OOID. &lt;/P&gt;

&lt;P&gt;Can anyone guide me in the right direction?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2015 17:09:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-how-many-documents-were-created-updated-or-deleted/m-p/131500#M35871</guid>
      <dc:creator>splunkman341</dc:creator>
      <dc:date>2015-04-08T17:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to search how many documents were created, updated, or deleted for each OOID in my data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-how-many-documents-were-created-updated-or-deleted/m-p/131501#M35872</link>
      <description>&lt;P&gt;If you already have fields for the action and the OOID, then this will be easier. My solution is to create the fields on the fly using the &lt;CODE&gt;rex&lt;/CODE&gt; command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=doccloud_catalina "AOID Folder workspace"
| rex "(?&amp;lt;action&amp;gt;created|updated|deleted) for OOID:(?&amp;lt;OOID&amp;gt;\S+?),"
| stats count by OOID action
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The regular expression in the rex command makes some assumptions about the format of the message lines, which might be incorrect...&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2015 17:42:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-how-many-documents-were-created-updated-or-deleted/m-p/131501#M35872</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-04-08T17:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to search how many documents were created, updated, or deleted for each OOID in my data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-how-many-documents-were-created-updated-or-deleted/m-p/131502#M35873</link>
      <description>&lt;P&gt;Thanks for your anwser, it works beautifully! I was wondering how to simply the command further to only display the 5 most active OOID's categorized by their actions to update, add, delete&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2015 17:52:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-how-many-documents-were-created-updated-or-deleted/m-p/131502#M35873</guid>
      <dc:creator>splunkman341</dc:creator>
      <dc:date>2015-04-08T17:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to search how many documents were created, updated, or deleted for each OOID in my data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-how-many-documents-were-created-updated-or-deleted/m-p/131503#M35874</link>
      <description>&lt;P&gt;sourcetype=doccloud_catalina "AOID Folder workspace"&lt;BR /&gt;
 | rex "(?created|updated|deleted) for OOID:(?\S+?),"&lt;BR /&gt;
 | chart count by OOID action&lt;BR /&gt;
 | addtotals&lt;BR /&gt;
 | sort 5 -Total&lt;BR /&gt;
should work&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2015 18:23:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-how-many-documents-were-created-updated-or-deleted/m-p/131503#M35874</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-04-08T18:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to search how many documents were created, updated, or deleted for each OOID in my data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-how-many-documents-were-created-updated-or-deleted/m-p/131504#M35875</link>
      <description>&lt;P&gt;One more thing, to display the results for the past 7 days...would I just add the timechart span to the end or where would i put that? I really appreciate your brilliant mind!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2015 18:52:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-how-many-documents-were-created-updated-or-deleted/m-p/131504#M35875</guid>
      <dc:creator>splunkman341</dc:creator>
      <dc:date>2015-04-08T18:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to search how many documents were created, updated, or deleted for each OOID in my data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-how-many-documents-were-created-updated-or-deleted/m-p/131505#M35876</link>
      <description>&lt;P&gt;Timechart is actually a little easier:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=doccloud_catalina "AOID Folder workspace"
| rex "(?created|updated|deleted) for OOID:(?S+?),"
| timechart limit=5 span=1d count by OOID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which will give you a single line for each of the top 5 OOIDs. &lt;/P&gt;

&lt;P&gt;And thanks for the compliment, now I am blushing. But once you've been doing this for 5 years, it gets a lot easier...&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2015 00:58:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-how-many-documents-were-created-updated-or-deleted/m-p/131505#M35876</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-04-09T00:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to search how many documents were created, updated, or deleted for each OOID in my data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-how-many-documents-were-created-updated-or-deleted/m-p/131506#M35877</link>
      <description>&lt;P&gt;Ok I want to put it all together now!&lt;/P&gt;

&lt;P&gt;I want :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=doccloud_catalina "Document workspace"
| rex "(?&amp;lt;action&amp;gt;created|updated|deleted|removed) for OOID:(?&amp;lt;OOID&amp;gt;\S+?),"
| chart count by OOID action 
| addtotals
| sort 5 -Total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But to also take those same results and only display the past 7 day activity. It's my last question I promise ! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2015 14:47:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-how-many-documents-were-created-updated-or-deleted/m-p/131506#M35877</guid>
      <dc:creator>splunkman341</dc:creator>
      <dc:date>2015-04-10T14:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to search how many documents were created, updated, or deleted for each OOID in my data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-how-many-documents-were-created-updated-or-deleted/m-p/131507#M35878</link>
      <description>&lt;P&gt;You should be able to select the past 7 days in the time range selector and your search above would do just great. But if you want to show day-by-day results in a chart - that's a problem. Splunk can only do two dimensional charts - and you already have 2 dimensions: OOID and action.&lt;/P&gt;

&lt;P&gt;There is a way around it - combine OOID and action into a single field.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype=doccloud_catalina "Document workspace"
 | rex "(?created|updated|deleted|removed) for OOID:(?\S+?),"
 | eval series = OOID + ":" + action
 | bucket span=1d _time
 | chart count by series _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It's a bit of a chore here to identify the top 5 OOIDs - I am still thinking about that - my first idea was a bust.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2015 18:33:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-how-many-documents-were-created-updated-or-deleted/m-p/131507#M35878</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-04-10T18:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to search how many documents were created, updated, or deleted for each OOID in my data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-how-many-documents-were-created-updated-or-deleted/m-p/131508#M35879</link>
      <description>&lt;P&gt;Please keep me updated!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2015 19:43:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-how-many-documents-were-created-updated-or-deleted/m-p/131508#M35879</guid>
      <dc:creator>splunkman341</dc:creator>
      <dc:date>2015-04-10T19:43:52Z</dc:date>
    </item>
  </channel>
</rss>

