Set to Upload Audit Log Entries into particular Library Programatically

Hi,
We got a requirement where need to set the Library to which the Audit Log needs to store.
By default in OOB, we have option as Browse and Set the document Library for Auditing any Site/Web/List. But in SPAudit class we couldn't find any related Methods/Properties to which we can set where this Audit Log entry should need to happen.
Could anyone help us asap.
Dinesh Pulugundla, Microsoft Certified Technology Specialist.

I don't know if that functionality is available programatically. My guess is SharePoint uses SPAudit.GetItems() or the SPAuditQuery class to query the
events and outputs as a Excel (CSV) file to the library you specify.
You could try recreating this process in your code.
Jason Warren
Habanero Consulting Group
habaneroconsulting.com/Insights
@jaspnwarren

Similar Messages

  • Each Document in Audit Log entry

    Hi,
    There is document library of name testdoclib in the site.
    There are three files under the document library with names file1,.file2 and file3.
    Users are downloading/viewing only file1,file2 files alone.
    Now in the audit log entries,will i be able to view file3 entry as well?
    In the audit log,will the entries be of files which are viewed/downloaded by the users?
    Please share inputs on the same.
    Regards,
    Sudheer
    Thanks & Regards, Sudheer

    Hi Sudheer,
    The log entries are captured for viewing, downloading or opening the document only or checked out or check-in.  In your scenario, file3 entry will not be there until and unless any of the above mentioned actions happened.
    Please refer to the following article.
    https://support.office.microsoft.com/en-us/article/View-audit-log-reports-4293e8d5-4e7d-4201-b8ac-c8e63a100131?CorrelationId=d11e5086-013b-4416-a066-df51f22ff6fe&ui=en-US&rs=en-US&ad=US
    Please don't forget to mark it as answered, if your problem resolved or helpful.

  • Problem with the XI-Audit log entries in the table "XI_AF_MSG_AUDIT"

    Hi,
    I have an async-szenarios for PO:
    We send Idoc's from SAP ERP to a WebService via SOAP. And we take Ack's. We use Integrationsprocess with deadline block to catche the errors after the retrying (three times) and to send they via e-mail.
    Our problem is, the number of the audit logs in the table "XI_AF_MSG_AUDIT":
    In the RTW only we see one audit log (with three retries) in an error case. But in the table XI_AF_MSG_AUDIT there are about 76 entries for the same audit log in the error case and about 20 entries in the case of the succuessfull processing.
    This number of the entries in the table causes problem with the size of the redo log file and delete job of cours the large size of the table and therefore problem on the data base. The table can not be controlled. The delete job can not run and cancels every time due this redo log problems
    What can cause that?
    How can it be prevented, that so much entries are not be made in the  table "XI_AF_MSG_AUDIT".
    Best regards
    Gueltekin

    Hi Gueltekin,
    I am only aware of the general property auditLogEnabled of J2EE Engine Service SAP XI AF Core, which controls in general (default = true) that entries in the AF Message Audit log are written at all.
    (see [http://help.sap.com/saphelp_nw70/helpdata/en/5c/22ee41c334c717e10000000a155106/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/en/5c/22ee41c334c717e10000000a155106/frameset.htm])
    I assume that your scenarios in the error case is sending up to three messages and for each message the number of audit log infos are created. You might want to check the detailed entries in the log and see from where they are comming, you might use customer modules etc. as well.
    Best regards,
    Silvia

  • Making Multiple Entries Into iTunes Library Columns

    Is there any way to enter the same data for multiple songs into a column I have selected for my iTunes library? For instance I would like to subdivide my jazz songs into categories like Bop, Bosa Nova and Progressive. I added the columns "Category" and "Description" to my library by selecting View>View Options and checking the boxex for Category and Description. Those columns now appear in my library and I can enter data for one song at a time by clicking on the column for that song. However, I cannot find a way to enter data for multiple songs in those columns at one time. I can highlight multiple songs and go to File>GetInfo>Info to enter the same data for the selected songs but only for the fields included in the Info dialogue box. The new columns I selected, "Category" and "Description", were not added to the Info dialogue box so I cannot modify this data there. A simple solution from Apple would seem to be to automacally add all selected fields to the GetInfo>Info dialogue box, but that option does not seem to exist at this time. Does anyone know how I can enter the same data in multiple songs in these additional columns all at once. Thanks
    HP Pavillion dv1000   Windows XP Pro   iTunes version 7.0.2.16

    OK, I'm done writing the app.
    Go to my iTunes scripts page and follow the link there for downloading Perl (if you don't have it already). Install Perl, and then download my itunes_info script. Select the track(s) in iTunes, then run the script to edit the Comment and Description fields for multiple (or single) tracks. You can get a freeware utility similar to GhostTyperXML to attach the script to a key combo if you're going to be doing this a lot.
    In addition to allowing you to edit the comment and description fields, it will allow also you to rate songs using 1/2 stars (e.g. 2.5 stars).
    Sorry, you cannot use it to change the artwork.

  • Adding entries in Audit Log Tab in Component Monitoring under Runtime Workb

    Hello Experts,
    I am trying to add my own audit log entries to the Audit Log Tab under Runtime Workbench -> Component Monitoring. I found this sap help link (http://help.sap.com/saphelp_nwpi71/helpdata/en/3b/6fe540b1278631e10000000a1550b0/frameset.htm) I am not sure if i am going in the right direction or not. But, when I tried to use the code in my User Defined Function in Message Mapping it gives me java error on PublicAPIAccess.
    Can anyone please let me know what am i doing wrong or if I am going in a totally wrong direction to achieve me goal.
    I am using PI 7.1 without EP1 and my example uses File adapter.
    Thanks!!

    Hi,
    if you are trying to add custom audit log for system monitoring in RWB in component monitoring, then i think it is not feasible........moreover for this thing, you can ask your basis guys to configure CCMS in your XI system to recieve alerts for your system.............
    if you are trying to add custom audit log msgs for your msg processing, then you should develop a custom J2EE adapter module and add your audit log entries in the process method of your adapter module..............
    Regards,
    Rajeev Gupta
    Edited by: RAJEEV GUPTA on May 6, 2009 7:12 AM

  • Delete Administrator Audit Logging

    How can the system administrator control the Administrator Audit Logging of the Exchange Server.. What I want to do is to check the audit logging ( for some users who get access for an email) and delete some specific operations ( Like search and granting
    access) .. also how can I delete the log directly? 

    Hi,
    Based on my research, to delete the audit log entries which are over 7 days, we can set the AdminAuditLogAgeLimit parameter. Thus, let’s firstly try to double check the property by the following command:
    Get-AdminAuditLogConfig | FL  AdminAuditLogAgeLimit
    If  the value is 02.00:00:00, let’s check if there is any error in the event log to narrow down the cause.
    If you have any question, please feel free to let me know.
    Thanks,
    Angela Shi
    TechNet Community Support

  • Mailbox Admin Audit Logs

    Hi All ,
    Could you tell  me how to clear Mailbox Admin Audit Logs for past days , i have disabled the audit logs for mailboxes but still i could able to see the information from ECP about last mailboxes accessed details also i've decreased the age limit
    of mailbox still the information were reflecting in ECP
    Set-Mailbox -Identity xxxx -AuditLogAgeLimit 0
    Confirm
    You've specified the mailbox audit log age limit of 0 for mailbox "XXXX". If you continue, all log entries will
    be deleted. This change takes effect immediately.
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"): a
    - Sivashankar. Please mark as answer/useful if my contribution is helpful

    Hi,
    I tested in my lab, it is the same with your result. As a  workaround, since the mailbox audit log entries are stored in the Audits folder, we can MFCMAPI to delete the Audits folder which is a subfolder of Recoveralbe Items folder.
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

  • Mailbox auditing log search only shows last 7 days

    I have mailbox auditing turned on for a mailbox, and the audit log age limit is set to 90 days.  When I run the non admin user access report however it only shows me auditing items for the past 7 days.  If i go to powershell, and run search-mailboxauditlog
    it shows the same 7 days. Any suggestions?

    http://technet.microsoft.com/en-us/library/ff459237(v=exchg.150).aspx
    Mailbox audit logs are generated for each mailbox that has mailbox audit logging enabled. Log entries are stored in the Audits subfolder of the audited mailbox Recoverable Items folder. This ensures that all audit logs are available from a single location,
    regardless of which client access method was used to access the mailbox or which server or workstation an administrator used to access the mailbox audit log. If you move a mailbox to another Mailbox server, the mailbox audit logs for that mailbox are also
    moved because they're located in the mailbox.
    By default, mailbox audit log entries are retained in the mailbox for 90 days and then deleted. You can modify this retention period by using the
    AuditLogAgeLimit parameter with the
    Set-Mailbox cmdlet. If a mailbox is on In-Place Hold or litigation hold, audit log entries are only retained until the audit log retention period for the mailbox is reached. To retain audit log entries longer, you have to increase the retention period by
    changing the value for the AuditLogAgeLimit parameter, or export audit log entries before the retention period is reached.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • Missing Audit Log of Adapter Engine in Message Monitoring

    Hi!
    I've a problem with a fresh installed PI:
    The Adapter Engine doesn't log anything in the Message Monitoring. The Integration Engine logs everything properly, but all entries from the adapter engine are missing. It looks like no message was processed by the AE, but in fact AE is processing the messages properly, only logging fails.
    What can cause this behaviour?
    Best regards,
    Daniel

    Hi Agasthuri,
    yes, maybe something gone wrong in the post install, I will ask the guy which did the installation of the PI. Therefore I didn't have the logon data for performing a cache refresh, but in the log entries it seems that this is working properly.
    Hi Praveen,
    in Communication Channel Monitoring (In PI this is no longer found under Adapter Monitoring), I can see that the messages are delivered, but I can't see the Audit Log entries there.
    I checked the MDT, but there are also no messages displayed.
    End-to-End-Monitoring seems to be a good solution, but it seems that it is something configured wrong in this installation I will try to get the guy which cares for Basis to look after it.
    Best regards,
    Daniel

  • Content of the Audit Log

    Hello,
    It seems that the text of the audit log is contained in table xi_af_msg_audit ins the J2EE schema under field text_key.
    If I access this key directly from the database it seems to be unnecessarily long, with a lot of blank space padding.
    Is it possible to control what is recorded in this field and hence what is displayed in the Audit Log?
    Kind regards,
    Peter

    You can simply use the AuditMessageKey class to write your own audit log entries. A similar code would be
    AuditMessageKey auditMKey = new AuditMessageKey(message.getMessageId(), AuditDirection.INBOUND);
              Audit.addAuditLogEntry(
                   auditMKey,
                   AuditLogStatus.SUCCESS,
                   "Custom Message");
    Regards,
    Prateek

  • Recording User's Log entry

    Hi!
    I'm the login page, I have acknowledgment checkbox. When the user checks the box it displays the User Name, Password and login button.
    I am trying to provide a means to create an audit log entry to record the user's acceptance or every time the user successfully logs in.
    Can anyone help me with this?
    Thanks,
    Bino

    ...from yesterday: Re: successful login return value
    Scott

  • Audit Log update using Xchange or Webservice

    Hello,
    We are looking for the functionality to update Audit logs for Items.
    Do we have possibility to update the Audit logs for some Particular Item by using web service or Xchange message?
    The idea is to update the Audit log using some external service...
    Thanks in Advance,
    Regards,
    Pushkar

    Hi Pushkar ,
    I think we cannot do this . But can  you please tell me in which  business scenrio you want to  modified the audit Log.  Audit log is meant to record changes of those selected using the audit log feature in SAP ME 5.2 .
    Any update with  to item would anyway (Internal or External)  get updated in the audit log i believe .
    Thanks
    Kishore K V

  • TFS 2013 - Export Audit Log - API?

    Trying to use the new 2013 access audit log found on the "Access Levels" Admin web page to compare against list of users with MSDN accounts to ensure licensing compliance.  While I can manually export the access log to .csv per the built-in
    functionality, is the audit log accessible via the TFS API?
    Would like to automate, say obtaining audit log entries for the last 6 months ... within a PS script.

    Hi Jdlaw64,  
    Thanks for your post.
    The Export Audit Log shows all current users and groups information in TFS Server, it contains all the information of who accessed the TFS Server and when they did that, and it also shows what level of access that user or group has. We cannot get the entries
    from this log by date time(last 6 months).
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to extract audit log data from every document library in site collection using powershell?

    Hi All,
    I have n number of document library in one site collection,
    My query is- How to extract audit log data from every document library in a site collection using powershell?
    Please give solution as soon as possible?

    Hi inguru,
    For SharePoint audit log data, These data combine together in site collection. So there is no easy way to extract audit log data for document library.
    As a workaround, you can export the site collection audit log data to a CSV file using PowerShell Command, then you can filter the document library audit log data in Excel.
    More information:
    SharePoint 2007 \ 2010 – PowerShell script to get SharePoint audit information:
    http://sharepointhivehints.wordpress.com/2014/04/30/sharepoint-2007-2010-powershell-script-to-get-sharepoint-audit-information/
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Can i upload ipod music into itunes library?

    I want to put my ipod music back into the itunes library, and i dont know how. Is there any way to copy and paste, cuz it doesnt seem to be working..I want to upload the ipod music into the library so i can put the music onto my cell.
    well i hope i can get some help, cause its frustrating me.

    Syncing between iTunes and iPod is intended to be one-way: from iTunes to iPod. The exception, with recent versions of iTunes, is that content purchased from the iTMS can be copied from iPod back to iTunes.
    There are (nearly) countless third-party utilities for recovering music and other content from iPods, however, so perhaps you should have a look around the Internet for something that meets your needs.

Maybe you are looking for