Skip to content

Generate a detailed report of the processes running on the Client and periodically mail it to the Server

Notifications You must be signed in to change notification settings

vedangwartikar/process-log-mail

Repository files navigation

process-log-mail

Generate a detailed Log Report of the processes running on the Client and e-mail it to the Server


Process Log


The python script will run on the client-side. It will periodically generate a Log file for all the processes running on the Clients machine. The log file(txt and csv) will contain multiple information such as name of the process, its user, ProcessID, virtual memory usage(MB), etc. This file will be e-mailed to the server for further analytical computations. The script will also plot a graph of the memory consumption of these processes wrt to their PIDs. The process with highest memory consumption is tagged.

Installation and Execution

You will need to:

  • Install Python 3
  • Clone this repo onto your local machine
$ git clone https://github.com/vedangwartikar/process-log-mail
  • Go into the project directory and install the requied libraries from the requirements.txt file
$ pip install -r requirements.txt
  • Open the file details.json and edit the following fields:
    • fromEmailId - Enter the email-id you want to send the Process Log from
    • fromPassword - Enter the password of email-id you want to send the Process Log from
    • toEmailId - Enter the email-id you want to send the Process Log to
  • You need to let gmail services know that the automation script you are running is secure and safe.
    • Toggle the ON button here
  • Finally, execute the main file
$ python ProcessLog.py

Show your support

Give a try! ⭐️ it this project helps you.

About

Generate a detailed report of the processes running on the Client and periodically mail it to the Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages