Comments (5)
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.
I've updated the README file to include this example :)
from fluent-plugin-out_tcp_secure.
@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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluent-plugin-out_tcp_secure.