Skip to content

rohitburke/ChronoLog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” OT-LogBridge: Automated Log Forwarding and Archival System

⚑ OT-LogBridge is a lightweight automation script designed for Operational Technology (OT) environments.
It ensures that critical logs are:

  • πŸ“ Processed β†’ Updates timestamps for accuracy.
  • πŸ“‘ Transferred β†’ Securely forwarded to the history server.
  • πŸ—‚οΈ Archived β†’ Only the latest logs are sent to the Data Management (DM) Server.
  • πŸ€– The script is available in 2 langauges (Powershell and Python)

Note: It is recommended to use Powershell script for Windows-based OT systems, as it is the safer and easier choice. Choose Python if you’re building a cross-platform solution (Linux + Windows). If you want to integrate with advanced analytics (machine learning, dashboards) and if you’re prototyping outside OT (lab setup).


πŸ“‚ Project Flow

image

✨ Features

  • ⏱️ Trigger-based execution (runs only when a new log file is updated).
  • πŸ”„ Real-time log processing & timestamp updates.
  • πŸ“€ FTP-based log transfer to history server.
  • 🧹 Automated cleanup of daily log archives.
  • βš’οΈ Dual delivery mechanism (continuous history + daily summary).
  • πŸ”§ No manual intervention needed.
  • πŸ›‘οΈ Lightweight, designed for OT/ICS systems.
  • βœ… Easier for OT engineers/auditors to check history without looking at console.

πŸ“‚ Workflow

  1. Industrial Component β†’ Generates/updates Sensor_Log.txt
  2. Script β†’ Detects file updates everytime, processes with current timestamps of the system & uploads to History Server
  3. History Server β†’ Maintains archive of all logs generate in the day.
  4. Data Management(DM) Server β†’ Receives only the latest log at the end of the day.

🎯 Use Case

Ideal for OT environments where log integrity, availability, and archival are critical for:

  • 🏭 Industrial Control Systems (ICS).
  • πŸ”Œ Energy & Utilities.
  • 🚦 SCADA/PLC Monitoring.

πŸ’» Usage

(1) Change the path of Log file generated and ftp server ip & credentials

(2) Clone the repo for ruuning Python Script:

- git clone https://github.com/rohitburke/ChronoLog.git
- cd ChronoLog
- python ChronoLog.py

OR

(3) Clone the repo for ruuning Powershell Script:

- git clone https://github.com/rohitburke/ChronoLog.git
- cd ChronoLog
- powershell -ExecutionPolicy Bypass -File .\ChronoLog.ps1 -InstallService
- Start-Service ChronoLog

==> The script will:

  • Watch for changes in Sensor_log.txt
  • Process and upload logs automatically
  • Log all activities in Logs/FileOutScript.log

πŸš€ Future Enhancements

  • πŸ”’ SFTP/FTPS support.
  • πŸ“Š Dashboard for log visualization.
  • 🧾 Compliance-ready log retention policies.
  • 🌍 Push logs to SIEM (Splunk, ELK, QRadar) for more usability
  • πŸ”Ž Add checksum validation for file integrity.

About

ChronoLog: Real-Time OT Log Automation Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors