Skip to main content

Running the agent

pulsard --help
Pulsar daemon

USAGE:
pulsard [OPTIONS]

OPTIONS:
--config-file <CONFIG_FILE>
-h, --help Print help information
-v, --verbose Pass many times for a more verbose output. Passing `-v` adds
debug logs, `-vv` enables trace logging
-V, --version Print version information

By default we log messages with the INFO, WARN and ERROR levels:

pulsard
[INFO pulsar::pulsard::daemon] Starting module process-monitor
[INFO pulsar::pulsard::daemon] Starting module file-system-monitor
[INFO pulsar::pulsard::daemon] Starting module network-monitor
[INFO pulsar::pulsard::daemon] Starting module logger
[INFO pulsar::pulsard::daemon] Starting module rules-engine

If you want a verbose output showing all generated events, you can run it with increased verbosity.

pulsard -vv
...
TRACE event::network-monitor] SystemTime { tv_sec: 1657720506, tv_nsec: 961994166 } [2445:/usr/local/bin/postgres] Receive { source: 127.0.0.1:59962, destination: 0.0.0.0:0, len: 24, is_tcp: false }
TRACE event::file-system-monitor] SystemTime { tv_sec: 1657720506, tv_nsec: 962244452 } [55428:/usr/local/bin/postgres] FileOpened { filename: "/var/lib/postgresql/data/global/pg_filenode.map", flags: 32768 }
TRACE event::file-system-monitor] SystemTime { tv_sec: 1657720506, tv_nsec: 962283588 } [55428:/usr/local/bin/postgres] FileOpened { filename: "/var/lib/postgresql/data/global/pg_internal.init", flags: 32768 }