This repository was archived by the owner on Jan 19, 2019. It is now read-only.
-Legacy crawling envs still available but deprecated. LOG_DIRECTORIES``HARVESTER_LOG_FILES
Use now like this:
Harvester Crawl for Log Files
You can define an arbitrary number of streams with individual streamname, directories and logfile patterns! With the environment variables:
LOGIO_HARVESTER1STREAMNAME: The streamname, e.g.MyFantasticStreamnameLOGIO_HARVESTER1LOGSTREAMS: The logfile directories, space separated, e.g.:/var/log /testlogor/dir1 /dir2 /dir3LOGIO_HARVESTER1FILEPATTERN: The logfile patterns, space separated, e.g.*.xml *.log
Note that the variables must be enumerated (
1,2,3and so on) starting from1for an arbitrary amount of definitions!
Log file pattern with the ability to define file patterns.
$ docker run -d \
-e "LOGIO_HARVESTER1STREAMNAME=teststream1" \
-e "LOGIO_HARVESTER1LOGSTREAMS=/tests" \
-e "LOGIO_HARVESTER1FILEPATTERN=*.xml" \
-e "LOGIO_HARVESTER2STREAMNAME=teststream2" \
-e "LOGIO_HARVESTER2LOGSTREAMS=/tests2" \
-e "LOGIO_HARVESTER2FILEPATTERN=*.log *.xml" \
--link logio:logio \
--name harvester \
blacklabelops/logio harvester
Attaches to all files matching the patterns inside those folders.