Skip to content

NeonsIo/collector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neons log collector

CircleCI Codacy Badge

Goals

Log collector is responsible for receiving request from javascript tracker preparing logs and sending it to sink. Currently it is supporting kafka sink.

Run application in development mode

To run application first check configuration placed in src/main/resources/application.conf and then use SBT to run application

sbt run

Run tests

sbt test

Run in docker container

docker-compose.yml:

services:
  collector:
    container_name: collector
    image: neons/collector
    environment:
      - COLLECTOR_SINK_KAFKA_HOST=localhost
      - COLLECTOR_SINK_KAFKA_PORT=9092
    depends_on:
      - zookeeper
      - kafka
    volumes:
      - ./logs/collector:/logs
    ports:
      - 8080:8080
    tty: true
    
    ...
    #defined zookeper and kafka containers...

License

License can be found here.