Giter Site home page Giter Site logo

Comments (5)

helgeolav avatar helgeolav commented on August 13, 2024

Hi

Could you tell a bit more about what you are trying to do? What inputs/outputs you want to use a plain codec on?

I assume that with "plain" you mean that a text string should not be handled in the input/output module.

from gogstash.

yjagdale avatar yjagdale commented on August 13, 2024

so right now every input which is coming from the source is converted to json (timestamp).
In my case, I don't want that conversion and input -> filter it should be the same string as the source.

from gogstash.

yjagdale avatar yjagdale commented on August 13, 2024

https://www.elastic.co/guide/en/logstash/current/plugins-codecs-plain.html is the original codec from elastic.

from gogstash.

helgeolav avatar helgeolav commented on August 13, 2024

Ok, can you tell me what inputs and outputs you work with?

An event contains several fields. Timestamp and message are the two most used.

An input without a codec will typically place the input data into the field message. If the same input is configured to use the json codec, the input data will be parsed and new fields will be created for each set of data in the json.

A timestamp is always added to the event on input.

The filters work on whatever field you want it to work on.

On the output side it is somewhat similar. The elastic output will always convert the event into a JSON struct, meaning all fields, including the timestamp, will be included. Other outputs can handle this differently, allowing you to either choose a codec (json vs plain text), or what field to push out.

from gogstash.

helgeolav avatar helgeolav commented on August 13, 2024

The filters grok and gonx can be used instead of a codec to parse lines of text.

from gogstash.

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.