Appearance
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 | iexYou 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 statusWhat's kept
| Item | On upgrade |
|---|---|
logcore.yaml | kept (only api_key and apm.enabled change if you pass them) |
services/*.yaml | kept |
Read positions (registry.json) | kept, so no lines are lost or sent twice |
The logcore-agent user and its ACLs | kept |
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