<?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 verify if a document has been reviewed based on the last update date and the versioning? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-verify-if-a-document-has-been-reviewed-based-on-the-last/m-p/341941#M101325</link>
    <description>&lt;P&gt;@danje57 I have updated my answer based on the details you have provided... I have not printed all the required values but given you hints which you can use to do in case you need the same.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2017 14:01:21 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-03-09T14:01:21Z</dc:date>
    <item>
      <title>How to verify if a document has been reviewed based on the last update date and the versioning?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-verify-if-a-document-has-been-reviewed-based-on-the-last/m-p/341938#M101322</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I need your help.&lt;/P&gt;

&lt;P&gt;I retrieve a log from Sharepoint which contains the list of all published document with its information, in CSV format&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Title, Author, Contributor, Last_Update_date, Version&lt;BR /&gt;
Driver_policy, Albert, John, 07/03/2017, 4.0&lt;BR /&gt;
Security_policy, Denise, MArie, 01/01/2017, 2.0&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I would like to detect if a document has been reviewed at least 1 time a year.&lt;/P&gt;

&lt;P&gt;Each day, I'll send the logs to Splunk. This logs could be the same if the document has been not modified&lt;/P&gt;

&lt;P&gt;My guess is to play with the last update and the version in a lookup.&lt;/P&gt;

&lt;P&gt;But I don't how to start.&lt;/P&gt;

&lt;P&gt;Do you have any idea?&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:08:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-verify-if-a-document-has-been-reviewed-based-on-the-last/m-p/341938#M101322</guid>
      <dc:creator>danje57</dc:creator>
      <dc:date>2020-09-29T13:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to verify if a document has been reviewed based on the last update date and the versioning?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-verify-if-a-document-has-been-reviewed-based-on-the-last/m-p/341939#M101323</link>
      <description>&lt;P&gt;Updated Query based on field names/details provided. You had provided Author and Contributor as extracted fields earlier but in the new details you have not mentioned the same. Please confirm. In any case basically you have to take two things in account.&lt;/P&gt;

&lt;P&gt;Since Document ID Is unique for each document that is the key, so your stats will be &lt;STRONG&gt;by ID&lt;/STRONG&gt;. &lt;/P&gt;

&lt;P&gt;Since you can get multiple entries for the same document everyday with same version, you should perform a distinct_count() or dc() based on the Versions i.e. &lt;STRONG&gt;dc(Version)&lt;/STRONG&gt;. min(), max(), last() and values() are other statistical functions that you can take advantage of to pull the data/stats as per your need.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;YourBaseSearch&amp;gt;| stats dc(Version) as VersionCount last(Title) LatestTitle last(Accountable_Owner) Publisher values(support_Contributor) as Contributors min(Last_Update) as FileCreateDate max(Last_Update) as FinalUpdateDate  values(Version) as Versions by ID
| search VersionCount&amp;gt;1
| table ID Title Publisher Versions Contributors FileCreateDate FinalUpdateDate
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Files with &lt;CODE&gt;VersionCount=1&lt;/CODE&gt; will imply that they have not been modified since creation.&lt;/P&gt;

&lt;P&gt;Refer to the list of statistical functions available in Splunk: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonStatsFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonStatsFunctions&lt;/A&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;If you have something like a Document ID it would be better to correlate, however, based on data you provided you can try with Title and Author of the document as the correlation key. There can be several options, but I am using stats as the query would run for really long duration of time. It would be better to provide some filters on your dashboard for Searching patterns of Title, Author, Contributors and include them in your base search.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 19:47:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-verify-if-a-document-has-been-reviewed-based-on-the-last/m-p/341939#M101323</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-07T19:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to verify if a document has been reviewed based on the last update date and the versioning?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-verify-if-a-document-has-been-reviewed-based-on-the-last/m-p/341940#M101324</link>
      <description>&lt;P&gt;Thanks niketnilay,&lt;/P&gt;

&lt;P&gt;However I don't understand all the query.&lt;/P&gt;

&lt;P&gt;I'll give you here the exact fields of the CSV file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"File_Name","Title","ID","Doc_Category_BMS","Confidentiality","Last_Update","Version","Responsible_A_Manager","Responsible_B_Manager","Accountable_Owner","Support_Contributor","Informed_Users","Approval_Status"
"Car_Policy.docx","Car_Policy","ITMS-4-13","Policy",Confidential,"9/11/2015 11:39:57","7.0","John","Mick","Robert","Miles","All Users","0"
"Mobile_Policy","Mobile_Policy","ITMS-4-16","Policy",Confidential,"31/01/2017 16:38:40","9.0","Allan","Mick","Robert","Miles","All Users","0"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Filname, il the real filename of the document&lt;BR /&gt;
Title; is the title of the document&lt;BR /&gt;
ID: id of the document&lt;BR /&gt;
Doc_Category_BMS, is the category of the document: could be Policy, Procedure, Design,...&lt;BR /&gt;
Confidentiality, could be Confidential, Limited, Private&lt;BR /&gt;
Last_Update, is the last time update of the document&lt;BR /&gt;
Version, the version of the document&lt;BR /&gt;
Responsible_A_Manager, Person could edit the document&lt;BR /&gt;
Responsible_B_Manager, Person could edit the document&lt;BR /&gt;
Accountable_Owner, Owner of the document, which could publish the document (Approve it)&lt;BR /&gt;
support_Contributor, People can edit the document&lt;BR /&gt;
Informed_Users, People which can read the document when it's published&lt;BR /&gt;
Approval_Status, Status of the document, could be Approved, Rejected, Pending, Draft&lt;/P&gt;

&lt;P&gt;As explained before, I'll receive the log every day.&lt;BR /&gt;
This log will contain the information of the document.&lt;BR /&gt;
A document could be re-uploaded without change in the version. but the last update date could change.&lt;BR /&gt;
A document could pass from a version to another: 4 ==&amp;gt; 4.1 ==&amp;gt; 4.2 ==&amp;gt; 5&lt;/P&gt;

&lt;P&gt;I would like to detect when a document changed: new version and/or new last update date.&lt;/P&gt;

&lt;P&gt;Sorry if the explanation is too long.&lt;/P&gt;

&lt;P&gt;Thanks again for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:09:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-verify-if-a-document-has-been-reviewed-based-on-the-last/m-p/341940#M101324</guid>
      <dc:creator>danje57</dc:creator>
      <dc:date>2020-09-29T13:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to verify if a document has been reviewed based on the last update date and the versioning?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-verify-if-a-document-has-been-reviewed-based-on-the-last/m-p/341941#M101325</link>
      <description>&lt;P&gt;@danje57 I have updated my answer based on the details you have provided... I have not printed all the required values but given you hints which you can use to do in case you need the same.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 14:01:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-verify-if-a-document-has-been-reviewed-based-on-the-last/m-p/341941#M101325</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-09T14:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to verify if a document has been reviewed based on the last update date and the versioning?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-verify-if-a-document-has-been-reviewed-based-on-the-last/m-p/341942#M101326</link>
      <description>&lt;P&gt;Many thanks!!!&lt;BR /&gt;
It works like charm!!!!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 17:56:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-verify-if-a-document-has-been-reviewed-based-on-the-last/m-p/341942#M101326</guid>
      <dc:creator>danje57</dc:creator>
      <dc:date>2017-03-10T17:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to verify if a document has been reviewed based on the last update date and the versioning?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-verify-if-a-document-has-been-reviewed-based-on-the-last/m-p/341943#M101327</link>
      <description>&lt;P&gt;@danje57... Glad it worked... You might have to consider summary indexing as well... So that older versions of same file are summarized as single row. That way search will perform better for longer duration!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 20:07:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-verify-if-a-document-has-been-reviewed-based-on-the-last/m-p/341943#M101327</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-10T20:07:53Z</dc:date>
    </item>
  </channel>
</rss>

