Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

A discrete filesystem watcher and notifier in Rust

Notifications You must be signed in to change notification settings

AlexsJones/distillate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Distillate

Distillate will watch filesystem resources and notify on changes to selected resources. The typical usecase would be to monitor for tampering of critical system files.

Installation

cargo install distillate

Usage

distillate run --options-path=distillate.config

Example configuration

{
    "fuzzy_paths": true,
    "watch_paths": [{
    "path": "/etc",
    "recursive": true,
    "alert_on": [
        {
            "event_type": "create",
            "path": "/etc/hosts"
        }
    ]
    }],
    "sink": {
        "log_path": "monitoring.log"
    }
} 

Example monitoring output

[2024-03-04T08:22:54.649610+00:00]"create" event detected on path "/Users/axjns/Library/Application Support/dev.warp.Warp-Stable/warp.sqlite-journal"

Post request to remote receiver

POST / HTTP/1.1
accept: */*
host: localhost:8080
content-length: 115

"remove" event detected on path "/Users/axjns/Library/Application Support/dev.warp.Warp-Stable/warp.sqlite-journal"

About

A discrete filesystem watcher and notifier in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages