GithubHelp home page GithubHelp logo

Monitor folder with logs about rtail HOT 3 CLOSED

ageorgios avatar ageorgios commented on June 20, 2024
Monitor folder with logs

from rtail.

Comments (3)

megastef avatar megastef commented on June 20, 2024 1

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

from rtail.

megastef avatar megastef commented on June 20, 2024

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.

from rtail.

Garulf avatar Garulf commented on June 20, 2024

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.

from rtail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.