Movatterモバイル変換


[0]ホーム

URL:


Loading

Syslog output plugin

For other versions, see theVersioned plugin docs.

For plugins not bundled by default, it is easy to install by runningbin/logstash-plugin install logstash-output-syslog. SeeWorking with plugins for more details.

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.

Send events to a syslog server.

You can send messages compliant with RFC3164 or RFC5424 using either UDP or TCP as the transport protocol.

By default the contents of themessage field will be shipped as the free-form message text part of the emitted syslog message. If your messages don’t have amessage field or if you for some other reason want to change the emitted message, modify themessage configuration option.

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

SettingInput typeRequired
appnamestringNo
facilitystringNo
hoststringYes
messagestringNo
msgidstringNo
portnumberYes
prioritystringNo
procidstringNo
protocolstring, one of["tcp", "udp", "ssl-tcp"]No
reconnect_intervalnumberNo
rfcstring, one of["rfc3164", "rfc5424"]No
severitystringNo
sourcehoststringNo
ssl_cacerta valid filesystem pathNo
ssl_certa valid filesystem pathNo
ssl_keya valid filesystem pathNo
ssl_key_passphrasepasswordNo
ssl_verifybooleanNo
use_labelsbooleanNo

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

  • Value type isstring
  • Default value is"LOGSTASH"

application name for syslog message. The new value can include%{{foo}} strings to help you build a new value from other parts of the event.

  • Value type isstring
  • Default value is"user-level"

facility label for syslog message default fallback to user-level as in rfc3164 The new value can include%{{foo}} strings to help you build a new value from other parts of the event.

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

syslog server address to connect to

  • Value type isstring
  • Default value is"%{{message}}"

message text to log. The new value can include%{{foo}} strings to help you build a new value from other parts of the event.

  • Value type isstring
  • Default value is"-"

message id for syslog message. The new value can include%{{foo}} strings to help you build a new value from other parts of the event.

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

syslog server port to connect to

  • Value type isstring
  • Default value is"%{{syslog_pri}}"

syslog priority The new value can include%{{foo}} strings to help you build a new value from other parts of the event.

  • Value type isstring
  • Default value is"-"

process id for syslog message. The new value can include%{{foo}} strings to help you build a new value from other parts of the event.

  • Value can be any of:tcp,udp,ssl-tcp
  • Default value is"udp"

syslog server protocol. you can choose between udp, tcp and ssl/tls over tcp

  • Value type isnumber
  • Default value is1

when connection fails, retry interval in sec.

  • Value can be any of:rfc3164,rfc5424
  • Default value is"rfc3164"

syslog message format: you can choose between rfc3164 or rfc5424

  • Value type isstring
  • Default value is"notice"

severity label for syslog message default fallback to notice as in rfc3164 The new value can include%{{foo}} strings to help you build a new value from other parts of the event.

  • Value type isstring
  • Default value is"%{{host}}"

source host for syslog message. The new value can include%{{foo}} strings to help you build a new value from other parts of the event.

  • 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 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.

  • Value type isboolean
  • Default value istrue

use label parsing for severity and facility levels use priority field if set to false

These configuration options are supported by all output plugins:

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

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 syslog outputs. Adding a named ID in this case will help in monitoring Logstash when using the monitoring APIs.

output {  syslog {    id => "my_plugin_id"  }}
Note

Variable substitution in theid field only supports environment variables and does not support the use of values from the secret store.

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