I tried the example of log-ingestion, downloaded all yaml files, startet the first docker (docker-compose.yaml), logged in to http://127.0.0.1:5601/ and all looks fine.
Next step is loading an Apache log file as “test.log” by starting a second docker (docker-compose-dataprepper.yaml).
It starts an the last line is “… Started http source on port 2021…”.
No errors so far, but it doesn’t start ingesting the test.log file.
At the Dashboard I can create an index pattern and see “apache_logs” for selection.
After creating an index pattern and going to Discover there is only an empty index. Nothing has been ingested from test.log.
[INPUT]
name tail
refresh_interval 5
path /var/log/test.log
read_from_head true
[OUTPUT]
Name http
Match *
Host data-prepper
Port 2021
URI /log/ingest
Format json
HTTP_User admin
HTTP_Passwd Developer@123
First Docker:
docker compose --project-name data-prepper -f docker-compose.yaml up
Second Docker:
docker compose --project-name data-prepper -f docker-compose-dataprepper.yaml up