Giter Site home page Giter Site logo

Comments (5)

doron327 avatar doron327 commented on June 28, 2024 1

Hi @raghuOrb the data is being send as it is, you don't need fluent codec on the logstash input side.
this is what I'm using on the logstash receiving side:

tcp {

    port => 9999

    ssl_enable => true

    ssl_cert => "creds/cert.pem"

    ssl_key => "creds/cert.key"

    ssl_verify => false

}

from fluent-plugin-out_tcp_secure.

doron327 avatar doron327 commented on June 28, 2024

I've updated the README file to include this example :)

from fluent-plugin-out_tcp_secure.

raghuOrb avatar raghuOrb commented on June 28, 2024

@doron327 I'm using insecure connection for testing purposes. Will move to SSL later. After removing the codec => fluent, it is working smoothly. However when I wanted to write the output clause in logstash.conf to a file, I tried line, json_lines, fluent, msgpack codecs. JSON_LINES worked best for me but info such as tag is missing.

output {
  stdout {
   codec => rubydebug
  }
}

output {
  file {
    path => "/usr/share/logstash/mylog/mylog-%{+YYYY-MM-dd}.log"
    codec => json_lines
  }
}

Both of the output had tag missing.
Output from rubydebug is

{
    "@timestamp" => 2018-03-20T12:56:17.102Z,
          "host" => "XX.XX.XX.XX",
          "port" => 57504,
      "@version" => "1",
       "message" => "{\"dummy log\"}"
}

Output from json_lines is

{"@timestamp":"2018-03-20T12:56:17.102Z","host":"XX.XX.XX.XX","port":57504,"@version":"1","message":"{\"dummy log\"}"}

from fluent-plugin-out_tcp_secure.

doron327 avatar doron327 commented on June 28, 2024

Hi @raghuOrb, you should use the Logstash tcp output clause.
regarding the tags, what tag are you expecting? you can add any tag you like in fluent before sending the data through the loom output plugin.
is that help?

from fluent-plugin-out_tcp_secure.

raghuOrb avatar raghuOrb commented on June 28, 2024

I think documentation should have info about tag_key and include_tag_key in config parameters as well. I'm successfully using it with logstash but tag was not a part of the message by default which is not intuitive.

from fluent-plugin-out_tcp_secure.

Related Issues (3)

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.