Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM ET Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM ET

script needed to notify me when file stops increasing in size

Home Forums Scripting General Scripting script needed to notify me when file stops increasing in size

Viewing 1 post (of 1 total)
  • Author
    Posts

  • SaltGary
    Member
    #167271

    I am not a programmer and just know enough carry on a half-way intelligent conversation. I am learning and going through a few self help programming guides though my primary strengths are networking and computer hardware.

    That being said, I need help writing a script for a project I am working on at work. I need to monitor a log file that is constantly increasing in size and be notified (preferably through email) if the file stops increasing in size. I thought maybe one way would be to monitor the timestamp attribute and if, for example, it is older than say 30 seconds or 1 minute to send the notification. Does this make sense or would there be a better way to do this?

    What I was thinking was doing something like this:

    check file stored -file c:fileslogsmonkeylog.log -timestamp
    if timestamp > 1 min then alert

    Can someone please help me write this script?

    Thank you!

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Live Webinar: Active Directory Security: What Needs Immediate Priority!Live on Tuesday, October 12th at 1 PM ET

Attacks on Active Directory are at an all-time high. Companies that are not taking heed are being punished, both monetarily and with loss of production.

In this webinar, you will learn:

  • How to prioritize vulnerability management
  • What attackers are leveraging to breach organizations
  • Where Active Directory security needs immediate attention
  • Overall strategy to secure your environment and keep it secured

Sponsored by: