Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

blacklabelops/logio 1.0

Latest

Choose a tag to compare

@blacklabelops blacklabelops released this 05 Feb 20:10
· 4 commits to master since this release

-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. MyFantasticStreamname
  • LOGIO_HARVESTER1LOGSTREAMS: The logfile directories, space separated, e.g.: /var/log /testlog or /dir1 /dir2 /dir3
  • LOGIO_HARVESTER1FILEPATTERN: The logfile patterns, space separated, e.g. *.xml *.log

Note that the variables must be enumerated (1,2,3 and so on) starting from 1 for 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.