Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Delete Event Log

(0) ShareShare
ReportReport
Posted on by 305

We have a massive amount of data in our Event Log file (SL- version 7.0).  Is there any way to delete the data & if so, what effect will it have on our system/data?

Thank you,

-Stacy Leslie

Lost Accountant.... :)

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Delete Event Log

    There are a lot of different ways to delete the files.  We use an SSIS package for SQL that is scheduled by SQL Agent that deletes the files and the records from pstatus.  The statement for the pstatus delete is

    delete from pstatus where execdate < (getdate()-14)

  • Stacy Roach Leslie Profile Picture
    Stacy Roach Leslie 305 on at
    Re: Delete Event Log

    Dwight,

    Thank you for the quick response.  Yes I believe that it is in the DSL root directory.  Is there an easy way to delete the log files?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Delete Event Log

    I assume you are talking about the eventlog folder in the DSL root directory.  We delete enything over 2 weeks old.  We also delete the records from the PSTATUS table for the associated eventlogs.  This way it keeps the users list of eventlogs shorter and we do not get the message that it can not find the file.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans