Skip to content

Upgrade the agent ​

To upgrade, run the same install command again. The installer replaces the binary, keeps your logcore.yaml and services/, and restarts the service.

sh
bash -c "$(curl -fsSL https://logcore.lsofito.com/install.sh)"
powershell
iwr -useb https://logcore.lsofito.com/install.ps1 | iex

You don't need LOGCORE_API_KEY for an upgrade. If you pass it, the key in logcore.yaml is replaced.

Check the new version:

sh
logcore-agent version
sudo logcore-agent status

What's kept ​

ItemOn upgrade
logcore.yamlkept (only api_key and apm.enabled change if you pass them)
services/*.yamlkept
Read positions (registry.json)kept, so no lines are lost or sent twice
The logcore-agent user and its ACLskept

Upgrade many servers ​

Run the command with your configuration management tool, for example Ansible:

yaml
- name: Upgrade Logcore agent
  ansible.builtin.shell: bash -c "$(curl -fsSL https://logcore.lsofito.com/install.sh)"
  become: true