Giter Club home page Giter Club logo

Comments (4)

turboladen avatar turboladen commented on July 18, 2024 2

You don't set the IP, PORT on logstaher. You use Logstash for that.

@nicolas-besnard What if logstash is running on a different box? How do I tell logstasher where that box is? logstash-logger makes it clear how to do that.

from logstasher.

rockaBe avatar rockaBe commented on July 18, 2024

@shadabahmed: I think this issue can be closed.

from logstasher.

thedanielhanke avatar thedanielhanke commented on July 18, 2024

@turboladen

LogStasher.logger = LogStashLogger.new ...

quite hacky, but works.

from logstasher.

adambutler avatar adambutler commented on July 18, 2024

I've been implementing logstash since I've had occasional issues running out of disk space when our sever has been targeted. I wanted to do the same to prevent the need to write to a file at all and to write to logstash via UDP.

The answer above using LogStasher.logger = didn't seem to work for me in both an initializer and my .rb file since the LogStasher.logger gets overridden at somepoint after this.

The solution for me was to add this as part of the configuration hash as such:

config.logstasher.logger = LogStashLogger.new(port: 5228)

FYI: Another possibility for resolving the issue I have comes from #136:

config.logstasher.logger = Logger.new(Rails.root.join('log', "logstash_#{Rails.env}.log"), 1, 1.megabyte)

from logstasher.

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.