Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 821 Bytes

file-watch-publisher-agent.rst

File metadata and controls

32 lines (24 loc) · 821 Bytes

File Watch Publisher Agent

Introduction

FileWatchPublisher agent watches files for changes and publishes those changes per line on the corresponding topics. Files and topics should be provided in the configuration.

Configuration

A simple configuration for FileWatchPublisher with two files to monitor is as follows:

{
    "files": [
        {
            "file": "/var/log/syslog",
            "topic": "platform/syslog"
        },
        {
            "file": "/home/volttron/tempfile.txt",
            "topic": "temp/filepublisher"
        }
    ]
}

Using this example configuration, FileWatchPublisher will watch syslog and tempFile.txt files and publish the changes per line on their respective topics.