Filebeat configuration for lancache servers
- Ubuntu Server 16.04
git clone https://github.com/zeropingheroes/lancache-filebeat.git && cd lancache-filebeat
All configuration is done via environment variables:
cp .env.example .env
nano .env
Alternatively you may set each environment variable manually before install by running the following command:
export VARIABLE=value
Environment variables:
LOGSTASH_HOST
- The host filebeat should connect to and send logs to, e.g.filebeat.example.com:5044
CACHE_LOGS_DIRECTORY
- The folder containing nginx's logs, which filebeat will ingest, e.g./var/lancache/logs
Once the environment variables have been set, run:
sudo ./install.sh