Skip to content

Avalanchio Remote Agent

Remote agent uses the same configuration as described above for the Python SDK

Remote Agent is an application which runs on the user’s machine. It collects data from the user’s machine and sends them to Avalanchio over https. Remote agent must have a user’s credentials. These credentials can be username, password or token. Remote agent current is a python application. You can download the latest version of the application from this link.

An agent can do multiple tasks. These tasks can run in parallel. Execution or failure of one task does not impact the other.

For example,

Task 1: one task can watch a file path and send any new files arriving at that path to Avalanchio topic.

Task 2: execute a script to collect data from the user machine.

Task 3: connect to database using credentials provided by the user and fetch data from it and forward the output to Avalanchio topic.

Task 4: Execute a search on Avalanchio and send the output of a query to an internal system.

Topic

Topic is a high velocity data store. It can take hundreds of thousands writes/read per seconds. The topic contains messages. Each message will have a key and a value. In many use cases, the remote agent sends to the remote agent.

Set up Remote Agent as Systemctl Service

To install or update, run the following commands. You can create a bash file since you need to run these commands once in a while to update the agent and set up a crontab task to automatically update the agent. To run the setup, you need sudo permission.

$ curl -L -o /tmp/setup.py 'https://packages.avalanchio.com/RemoteAgentInstaller/setup.py' && sudo python3 /tmp/setup.py

Note: sudo permission is required to set up the systemd service.

You can check the status of the service

$ sudo systemctl status avalanchio-remote-agent.service

You can find the logs

$ tail -n 100 /app/aio/RemoteAgent/logs/agent.log

Remove Remote Agent

$ sudo bash /app/aio/RemoteAgent/uninstall.sh