Skip to content

puneetbharti/logforwarder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

logforwarder

####Technologies used

  • Python: for log forwarding
  • Nodejs: Apis for input and output
  • Elasticsearch: as a data store

Assumptions


  • Python script is used to pick logs and send it to an api
  • Data loss in the program is not considered
  • Limited conditional check on the api as well as on the forwarder script.
  • Python script will run as a daemon through upstart.

local setup nodejs

  • go to the directory /api
  • execute npm install
  • execute node app.js

Python setup

  • go to directory /forwarder
  • execute python forwarder.py

Upstart script

script
    exec /usr/bin/python /srv/logforwarder/forwarder/forwarder.py
end script

  • copy the above code put it in /etc/init/forwarder.conf
  • make sure the path of the python script is specified correctly.
  • execute sudo start forwarder

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published