Giter Club home page Giter Club logo

Comments (4)

jeffaco avatar jeffaco commented on July 3, 2024

While it's not difficult modifying service_control to take a debug level, note that the various mechanisms used to start across various systems (be it /etc/inid.d style scripts or systemd control) do not necessarily take a parameter. I could set something globally and detect at startup, but that seems kind of sloppy to me.

As for the -vv option to fluentd, we're using the fluentd framework, and we're checking for debug of our particular plugin. Debugging globally (what -vv does) doesn't appear to set individual plugins to debug, which is why that's happening.

Given what you're after, I think it's easier just to change the configuration to debug our plugin.

Hope this helps,

/Jeff

from oms-agent-for-linux.

niroyb avatar niroyb commented on July 3, 2024

To answer the second part of the question, there are two types of log levels in fluentd:

  1. The global logging level controlled on invocation with the -v or -vv flags affects $log.
  2. The per plugging logging level controlled by the log_level tag in the configuration script affects @log.

In this case per plugin logging is used. Change the log_level of the output plugin to debug. The configuration file is located in /etc/opt/microsoft/omsagent/conf/omsagent.conf
Additional documentation can be found here : http://docs.fluentd.org/articles/logging#per-plugin-log

from oms-agent-for-linux.

jeffaco avatar jeffaco commented on July 3, 2024

@ChrisHeitkamp, have we answered your questions? If so, please feel free to close this issue. If not, please post a new comment and we'll help you out.

from oms-agent-for-linux.

ChrisHeitkamp avatar ChrisHeitkamp commented on July 3, 2024

@jeffaco @niroyb, thanks, this was the information I needed.

from oms-agent-for-linux.

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.