Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Monitor log in realtime, and run a command on a particular event

    Posted on

    I think I could probably create a python script to do this, but I wanted to see if someone has been here before me.

    We already have a crude working script that "greps" logs searching for a particular event.
    The event can easily be identified. The event contains a filename and filepath.
    The script then performs a "chattr" on that file.
    The script runs once ever 5 mins.

    However we now need it to run in real time so as soon as the event occurs the script is triggered.

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat