Movatterモバイル変換


[0]ホーム

URL:


Loading

Tcp output plugin v6.0.2

For other versions, see theoverview list.

To learn more about Logstash, see theLogstash Reference.

For questions about the plugin, open a topic in theDiscuss forums. For bugs or feature requests, open an issue inGithub. For the list of Elastic supported plugins, please consult theElastic Support Matrix.

Write events over a TCP socket.

Each event json is separated by a newline.

Can either accept connections from clients or connect to a server, depending onmode.

This plugin supports the following configuration options plus theCommon options described later.

SettingInput typeRequired
hoststringYes
modestring, one of["server", "client"]No
portnumberYes
reconnect_intervalnumberNo
ssl_cacerta valid filesystem pathNo
ssl_certa valid filesystem pathNo
ssl_enablebooleanNo
ssl_keya valid filesystem pathNo
ssl_key_passphrasepasswordNo
ssl_verifybooleanNo

Also seeCommon options for a list of options supported by all output plugins.

  • This is a required setting.
  • Value type isstring
  • There is no default value for this setting.

When mode isserver, the address to listen on. When mode isclient, the address to connect to.

  • Value can be any of:server,client
  • Default value is"client"

Mode to operate in.server listens for client connections,client connects to a server.

  • This is a required setting.
  • Value type isnumber
  • There is no default value for this setting.

When mode isserver, the port to listen on. When mode isclient, the port to connect to.

  • Value type isnumber
  • Default value is10

When connect failed,retry interval in sec.

  • Value type ispath
  • There is no default value for this setting.

The SSL CA certificate, chainfile or CA path. The system CA path is automatically included.

  • Value type ispath
  • There is no default value for this setting.

SSL certificate path

  • Value type isboolean
  • Default value isfalse

Enable SSL (must be set for otherssl_ options to take effect).

  • Value type ispath
  • There is no default value for this setting.

SSL key path

  • Value type ispassword
  • Default value isnil

SSL key passphrase

  • Value type isboolean
  • Default value isfalse

Verify the identity of the other end of the SSL connection against the CA. For input, sets the fieldsslsubject to that of the client certificate.

These configuration options are supported by all output plugins:

SettingInput typeRequired
codeccodecNo
enable_metricbooleanNo
idstringNo
  • Value type iscodec
  • Default value is"json"

The codec used for output data. Output codecs are a convenient method for encoding your data before it leaves the output without needing a separate filter in your Logstash pipeline.

  • Value type isboolean
  • Default value istrue

Disable or enable metric logging for this specific plugin instance. By default we record all the metrics we can, but you can disable metrics collection for a specific plugin.

  • Value type isstring
  • There is no default value for this setting.

Add a uniqueID to the plugin configuration. If no ID is specified, Logstash will generate one. It is strongly recommended to set this ID in your configuration. This is particularly useful when you have two or more plugins of the same type. For example, if you have 2 tcp outputs. Adding a named ID in this case will help in monitoring Logstash when using the monitoring APIs.

output {  tcp {    id => "my_plugin_id"  }}

Welcome to the docs for thelatest Elastic product versions, including Elastic Stack 9.0 and Elastic Cloud Serverless.To view previous versions, go toelastic.co/guide.


[8]ページ先頭

©2009-2025 Movatter.jp