Giter Site home page Giter Site logo

Comments (7)

radu-gheorghe avatar radu-gheorghe commented on June 14, 2024

Isn't that what !all-json does?

from rsyslog.

rgerhards avatar rgerhards commented on June 14, 2024

No, !all-json is just a legacy way of specifying all JSON message variables. Most importantly, it does not contain the "native" properties, like msg, rawmsg, syslogtag, fromhost, ...

from rsyslog.

radu-gheorghe avatar radu-gheorghe commented on June 14, 2024

Aha, got it now. Thanks for explaining. Big +1 from me to this one :)

from rsyslog.

Ralnoc avatar Ralnoc commented on June 14, 2024

So basically this is to create a new property that returns the whole syslog message (including timestamp and other header details?) In JSON format?

from rsyslog.

rgerhards avatar rgerhards commented on June 14, 2024

y...e...s ... if we understand each other correctly... Let's take just three of the native properties:

  • msg
  • syslogtag
  • fromhost

They (and all others) will need to go into a json contains. Probably "native" is a good name. So under native, you'll see a json for msg, syslogtag and fromhost (and all other properties). The idea is that a plugin has the same easy access to message properties as internal plugins have. Of course, this costs performance. But anyone is free to define a custom format (in JSON or whatever else) that exactly matches the need. What I am aiming at is providing the general solution which can be used with the least work to do ... at the price of the highest performance impact, of course ;)

from rsyslog.

rgerhards avatar rgerhards commented on June 14, 2024

Supported starting with rsyslog 8.3.0.

from rsyslog.

lock avatar lock commented on June 14, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from rsyslog.

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.