JSON

This codec is useful if the data consists of .json documents, and is used to encode (if used in output plugins) or decode (if used in input plugins) the data in the .json format. If the data being sent is a JSON array at its root, multiple events will be created (that is, one per element).

The simple usage of a JSON codec plugin is as follows:

input{
    stdin{
    codec => "json"
    }
}
If there are multiple JSON records, and those are delimited by , then use the json_lines codec.

If the json codec receives a payload from an input that is not valid JSON, then it will fall back to plain text and add a _jsonparsefailure tag.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.141.20