Setup

  1. Pull the Docker image

    Download the logzio/logzio-docker image:

     docker pull logzio/logzio-perfagent
    
  2. Run the Docker image

    For a complete list of options, see the parameters below the code block.👇

     docker run -d \
     --net="host" \
     -e LOGZ_TOKEN="<ACCOUNT-TOKEN>" \
     -e LISTENER="<LISTENER-URL>:5000" \
     -e USER_TAG="workers" \
     -e HOSTNAME=`hostname` \
     -e INSTANCE="10.1.2.3" \
     --restart=always \
     logzio/logzio-perfagent
    

    Parameters

    LOGZ_TOKEN
    Your Logz.io account token. Replace <ACCOUNT-TOKEN> with the token of the account you want to ship to.
    LISTENER listener.logz.io:5000
    Your account region and port. Replace <LISTENER-URL> with your region’s listener URL. For more information on finding your account’s region, see Account region.
    USER_TAG
    Assigned to the user_tag field of each log entry. You can use this field to group various hosts into meaningful visualisations. One recommended use case for this variable is to denote the host role.
    HOSTNAME
    Name of the host this container is monitoring. Assigned to the syslog5424_host field of each log entry.
    INSTANCE
    The IP address that will be assigned to the instance field of each entry.
  3. Check Logz.io for your logs

    Give your logs a few minutes to get from your system to ours, and then open Kibana.

    If you still don’t see your logs, see log shipping troubleshooting.