Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monitor folder with logs #117

Closed
ageorgios opened this issue May 7, 2016 · 3 comments
Closed

Monitor folder with logs #117

ageorgios opened this issue May 7, 2016 · 3 comments

Comments

@ageorgios
Copy link

Is there a way to monitor multiple .log files in a folder?

@megastef
Copy link

Hi,

pls. check logagent-js examples , plays well with rtail. It ships logs via rtail protocol to rtail server (and could store it in paralel to Elasticsearch or Logsene). You will ses each file as a separate stream.
To ship you logs to rtail (without storage option):
Install logagent:
npm i logagent -g
forward logs, file names selected by a glob pattern:
logagent --rtail-host myrtailserver --rtail-port 9999 -g "{/var/log/*.log,/Users/stefan/myapp/*.log}
To disable parsing of messages (to get the complete text in rtail, when message is broken down to multiple fields by logagent, use export PATTERN_MATCHING_ENABLED=false.

I hope this helps.

@Garulf
Copy link

Garulf commented Oct 17, 2016

Stumbled upon this issue and megastef's solution seems perfect! Except no matter how i format the port or host (0.0.0.0, 127.0.0.1) rTail just sits there empty. I can send rTail logs manually however.

@megastef
Copy link

Please note logagent made some progress:

  • package name changed
  • cli arguments changed
npm i -g @sematext/logagent
logagent  --rtailWebPort 8080 --rtailPort 9999 -g '/var/log/**/*.log'
firefox http://localhost:8080

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants