Skip to content

Quick start ​

In about five minutes you'll have a server reporting its metrics and logs to Logcore.

1. Create your organization ​

Open logcore.lsofito.com and choose Create an organization. Enter the organization name, your name, your email and a password of at least 8 characters.

Logcore creates your first API key for you. If someone has already added you to an organization, just sign in.

2. Install the agent ​

In the dashboard, open Add server. It's also linked from the empty Infrastructure page.

  1. Choose Linux or Windows.
  2. Pick an API key.
  3. Optionally, add host tags, for example env:prod, role:web.
  4. Copy the command and run it on your server.
sh
LOGCORE_API_KEY=lc_xxxxxxxx LOGCORE_TAGS="env:prod,role:web" \
  bash -c "$(curl -fsSL https://logcore.lsofito.com/install.sh)"
powershell
$env:LOGCORE_API_KEY="lc_xxxxxxxx"; $env:LOGCORE_TAGS="env:prod,role:web"; iwr -useb https://logcore.lsofito.com/install.ps1 | iex

Within a minute the server appears under Infrastructure with its CPU, memory and disk usage.

3. Ship a log file ​

Host metrics work right away. For logs, you tell the agent which files to read: create one file per service in the services folder.

yaml
name: nginx
path: /var/log/nginx/*.log
yaml
name: myapp
path: 'C:\myapp\logs\*.log'

Check the file, then restart the agent:

sh
sudo logcore-agent configcheck
sudo systemctl restart logcore-agent
powershell
logcore-agent configcheck
logcore-agent service restart

From now on, new lines written to those files appear in Logs. Lines that were already in the files aren't imported.

4. Check that everything is healthy ​

sh
sudo logcore-agent status

You should see Connection: OK and your service marked [OK]. Agent status explains each section of the output.

Next steps ​