Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I've been trying to experiment with Elasticsearch and the Elastic Cloud because I might want to use it for the company I currently work for. I have a 2 week trial, but I'm afraid I've not yet come very far because I cannot manage to get Logstash running without issues. This is my logstash.yml (mostly just default settings):
- [details="Summary"]
- # Settings file in YAML
- #
- # Settings can be specified either in hierarchical form, e.g.:
- #
- # pipeline:
- # batch:
- # size: 125
- # delay: 5
- #
- # Or as flat keys:
- #
- # pipeline.batch.size: 125
- # pipeline.batch.delay: 5
- #
- # ------------ Node identity ------------
- #
- # Use a descriptive name for the node:
- #
- # node.name: test
- #
- # If omitted the node name will default to the machine's host name
- #
- # ------------ Data path ------------------
- #
- # Which directory should be used by logstash and its plugins
- # for any persistent needs. Defaults to LOGSTASH_HOME/data
- #
- #path.data: /var/lib/logstash
- #
- # ------------ Pipeline Settings --------------
- #
- # Set the number of workers that will, in parallel, execute the filters+outputs
- # stage of the pipeline.
- #
- # This defaults to the number of the host's CPU cores.
- #
- # pipeline.workers: 2
- #
- # How many workers should be used per output plugin instance
- #
- # pipeline.output.workers: 1
- #
- # How many events to retrieve from inputs before sending to filters+workers
- #
- # pipeline.batch.size: 125
- #
- # How long to wait before dispatching an undersized batch to filters+workers
- # Value is in milliseconds.
- #
- # pipeline.batch.delay: 5
- #
- # Force Logstash to exit during shutdown even if there are still inflight
- # events in memory. By default, logstash will refuse to quit until all
- # received events have been pushed to the outputs.
- #
- # WARNING: enabling this can lead to data loss during shutdown
- #
- # pipeline.unsafe_shutdown: false
- #
- # ------------ Pipeline Configuration Settings --------------
- #
- # Where to fetch the pipeline configuration for the main pipeline
- #
- path.config: /etc/logstash/conf.d
- #
- # Pipeline configuration string for the main pipeline
- #
- # config.string:
- #
- # At startup, test if the configuration is valid and exit (dry run)
- #
- # config.test_and_exit: false
- #
- # Periodically check if the configuration has changed and reload the pipeline
- # This can also be triggered manually through the SIGHUP signal
- #
- #config.reload.automatic: true
- #
- # How often to check if the pipeline configuration has changed (in seconds)
- #
- config.reload.interval: 3
- #
- # Show fully compiled configuration as debug log message
- # NOTE: --log.level must be 'debug'
- #
- config.debug: true
- #
- # When enabled, process escaped characters such as \n and \" in strings in the
- # pipeline configuration files.
- #
- # config.support_escapes: false
- #
- # ------------ Module Settings ---------------
- # Define modules here. Modules definitions must be defined as an array.
- # The simple way to see this is to prepend each `name` with a `-`, and keep
- # all associated variables under the `name` they are associated with, and
- # above the next, like this:
- #
- # modules:
- # - name: MODULE_NAME
- # var.PLUGINTYPE1.PLUGINNAME1.KEY1: VALUE
- # var.PLUGINTYPE1.PLUGINNAME1.KEY2: VALUE
- # var.PLUGINTYPE2.PLUGINNAME1.KEY1: VALUE
- # var.PLUGINTYPE3.PLUGINNAME3.KEY1: VALUE
- #
- # Module variable names must be in the format of
- #
- # var.PLUGIN_TYPE.PLUGIN_NAME.KEY
- #
- # modules:
- #
- # ------------ Queuing Settings --------------
- #
- # Internal queuing model, "memory" for legacy in-memory based queuing and
- # "persisted" for disk-based acked queueing. Defaults is memory
- #
- # queue.type: memory
- #
- # If using queue.type: persisted, the directory path where the data files will be stored.
- # Default is path.data/queue
- #
- # path.queue:
- #
- # If using queue.type: persisted, the page data files size. The queue data consists of
- # append-only data files separated into pages. Default is 250mb
- #
- # queue.page_capacity: 250mb
- #
- # If using queue.type: persisted, the maximum number of unread events in the queue.
- # Default is 0 (unlimited)
- #
- # queue.max_events: 0
- #
- # If using queue.type: persisted, the total capacity of the queue in number of bytes.
- # If you would like more unacked events to be buffered in Logstash, you can increase the
- # capacity using this setting. Please make sure your disk drive has capacity greater than
- # the size specified here. If both max_bytes and max_events are specified, Logstash will pick
- # whichever criteria is reached first
- # Default is 1024mb or 1gb
- #
- # queue.max_bytes: 1024mb
- #
- # If using queue.type: persisted, the maximum number of acked events before forcing a checkpoint
- # Default is 1024, 0 for unlimited
- #
- # queue.checkpoint.acks: 1024
- #
- # If using queue.type: persisted, the maximum number of written events before forcing a checkpoint
- # Default is 1024, 0 for unlimited
- #
- # queue.checkpoint.writes: 1024
- #
- # If using queue.type: persisted, the interval in milliseconds when a checkpoint is forced on the head page
- # Default is 1000, 0 for no periodic checkpoint.
- #
- # queue.checkpoint.interval: 1000
- #
- # ------------ Dead-Letter Queue Settings --------------
- # Flag to turn on dead-letter queue.
- #
- # dead_letter_queue.enable: false
- # If using dead_letter_queue.enable: true, the maximum size of each dead letter queue. Entries
- # will be dropped if they would increase the size of the dead letter queue beyond this setting.
- # Default is 1024mb
- # dead_letter_queue.max_bytes: 1024mb
- # If using dead_letter_queue.enable: true, the directory path where the data files will be stored.
- # Default is path.data/dead_letter_queue
- #
- # path.dead_letter_queue:
- #
- # ------------ Metrics Settings --------------
- #
- # Bind address for the metrics REST endpoint
- #
- # http.host: "127.0.0.1"
- #
- # Bind port for the metrics REST endpoint, this option also accept a range
- # (9600-9700) and logstash will pick up the first available ports.
- #
- # http.port: 9600-9700
- #
- # ------------ Debugging Settings --------------
- #
- # Options for log.level:
- # * fatal
- # * error
- # * warn
- # * info (default)
- # * debug
- # * trace
- #
- log.level: debug
- path.logs: /var/log/logstash
- #
- # ------------ Other Settings --------------
- #
- # Where to find custom plugins
- # path.plugins: []
- [/details]
- I want to use Filebeat to send apache logs realtime to the Elastic Cloud so I can analyze them. My logstash.conf looks like this:
- [details="Summary"]
- input {
- beats {
- host => "127.0.0.1"
- port => 5044
- }
- }
- # The filter part of this file is commented out to indicate that it is
- # optional.
- # filter {
- #
- # }
- output {
- elasticsearch {
- hosts => ["https://749ef3120c86cdbf58c4c002f2344b86.eu-west-1.aws.found.io:9243"]
- user => "Jens"
- password => "pass"
- manage_template => false
- index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
- document_type => "%{[@metadata][type]}"
- }
- }
- [/details]
- The pipeline is never actually created. Below is the error which I think is causing all this trouble, but I have honestly no idea how to fix it (or what the cause is).
- [details="Summary"]
- [2017-10-19T15:05:35,247][ERROR][logstash.pipeline ] Error registering plugin {:plugin=>"#<LogStash::OutputDelegator:0x2d46745c @namespaced_metric=#<LogStash::Instrument::NamespacedMetric:0x3fb113ac @metric=#<LogStash::Instrument::Metric:0x39c77192 @collector=#<LogStash::Instrument::Collector:0x5a4ad3ea @agent=nil, @metric_store=#<LogStash::Instrument::MetricStore:0x4430a86b @store=#<Concurrent::Map:0x000000000644a8 entries=3 default_proc=nil>, @structured_lookup_mutex=#<Mutex:0x732bef32>, @fast_lookup=#<Concurrent::Map:0x000000000644ac entries=61 default_proc=nil>>>>, @namespace_name=[:stats, :pipelines, :main, :plugins, :outputs, :\"8f2791f16b92257ba930f259763a80cdb7570108-2\"]>, @metric=#<LogStash::Instrument::NamespacedMetric:0x7dbb1361 @metric=#<LogStash::Instrument::Metric:0x39c77192 @collector=#<LogStash::Instrument::Collector:0x5a4ad3ea @agent=nil, @metric_store=#<LogStash::Instrument::MetricStore:0x4430a86b @store=#<Concurrent::Map:0x000000000644a8 entries=3 default_proc=nil>, @structured_lookup_mutex=#<Mutex:0x732bef32>, @fast_lookup=#<Concurrent::Map:0x000000000644ac entries=61 default_proc=nil>>>>, @namespace_name=[:stats, :pipelines, :main, :plugins, :outputs]>, @logger=#<LogStash::Logging::Logger:0x1077b591 @logger=#<Java::OrgApacheLoggingLog4jCore::Logger:0x24b8860e>>, @out_counter=LogStash::Instrument::MetricType::Counter - namespaces: [:stats, :pipelines, :main, :plugins, :outputs, :\"8f2791f16b92257ba930f259763a80cdb7570108-2\", :events] key: out value: 0, @in_counter=LogStash::Instrument::MetricType::Counter - namespaces: [:stats, :pipelines, :main, :plugins, :outputs, :\"8f2791f16b92257ba930f259763a80cdb7570108-2\", :events] key: in value: 0, @strategy=#<LogStash::OutputDelegatorStrategies::Shared:0x26295cb0 @output=<LogStash::Outputs::ElasticSearch hosts=>[https://749ef3120c86cdbf58c4c002f2344b86.eu-west-1.aws.found.io:9243], user=>\"Jens\", password=><password>, manage_template=>false, index=>\"%{[@metadata][beat]}-%{+YYYY.MM.dd}\", document_type=>\"%{[@metadata][type]}\", id=>\"8f2791f16b92257ba930f259763a80cdb7570108-2\", enable_metric=>true, codec=><LogStash::Codecs::Plain id=>\"plain_ac1228ed-ffe4-4565-aa96-c38800fd7d43\", enable_metric=>true, charset=>\"UTF-8\">, workers=>1, template_name=>\"logstash\", template_overwrite=>false, idle_flush_time=>1, doc_as_upsert=>false, script_type=>\"inline\", script_lang=>\"painless\", script_var_name=>\"event\", scripted_upsert=>false, retry_initial_interval=>2, retry_max_interval=>64, retry_on_conflict=>1, action=>\"index\", ssl_certificate_verification=>true, sniffing=>false, sniffing_delay=>5, timeout=>60, pool_max=>1000, pool_max_per_route=>100, resurrect_delay=>5, validate_after_inactivity=>10000, http_compression=>false, ssl=>true>>, @id=\"8f2791f16b92257ba930f259763a80cdb7570108-2\", @time_metric=LogStash::Instrument::MetricType::Counter - namespaces: [:stats, :pipelines, :main, :plugins, :outputs, :\"8f2791f16b92257ba930f259763a80cdb7570108-2\", :events] key: duration_in_millis value: 0, @metric_events=#<LogStash::Instrument::NamespacedMetric:0xb5fbed9 @metric=#<LogStash::Instrument::Metric:0x39c77192 @collector=#<LogStash::Instrument::Collector:0x5a4ad3ea @agent=nil, @metric_store=#<LogStash::Instrument::MetricStore:0x4430a86b @store=#<Concurrent::Map:0x000000000644a8 entries=3 default_proc=nil>, @structured_lookup_mutex=#<Mutex:0x732bef32>, @fast_lookup=#<Concurrent::Map:0x000000000644ac entries=61 default_proc=nil>>>>, @namespace_name=[:stats, :pipelines, :main, :plugins, :outputs, :\"8f2791f16b92257ba930f259763a80cdb7570108-2\", :events]>, @output_class=LogStash::Outputs::ElasticSearch>", :error=>"Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')\n at [Source: (byte[])\"<script>var hashRoute = '/app/kibana';\nvar defaultRoute = '/app/kibana';\n\nvar hash = window.location.hash;\nif (hash.length) {\n window.location = hashRoute + hash;\n} else {\n window.location = defaultRoute;\n}</script>\"; line: 1, column: 2]"}
- [2017-10-19T15:05:35,254][ERROR][logstash.agent ] Pipeline aborted due to error {:exception=>#<LogStash::Json::ParserError: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
- [/details]
- This line comes from my logstash-plain.log - the following is what happens over and over again because Logstash is trying to start again after it has stopped.
- The entire log:
- [details="Summary"]
- [2017-10-19T15:41:06,549][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"/usr/share/logstash/modules/netflow/configuration"}
- [2017-10-19T15:41:06,551][DEBUG][logstash.plugins.registry] Adding plugin to the registry {:name=>"netflow", :type=>:modules, :class=>#<LogStash::Modules::Scaffold:0x75afc9e2 @kibana_version_parts=["5", "6", "0"], @module_name="netflow", @directory="/usr/share/logstash/modules/netflow/configuration">}
- [2017-10-19T15:41:06,552][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"/usr/share/logstash/modules/fb_apache/configuration"}
- [2017-10-19T15:41:06,552][DEBUG][logstash.plugins.registry] Adding plugin to the registry {:name=>"fb_apache", :type=>:modules, :class=>#<LogStash::Modules::Scaffold:0x2d6e1cbf @kibana_version_parts=["5", "6", "0"], @module_name="fb_apache", @directory="/usr/share/logstash/modules/fb_apache/configuration">}
- [2017-10-19T15:41:06,566][DEBUG][logstash.runner ] -------- Logstash Settings (* means modified) ---------
- [2017-10-19T15:41:06,566][DEBUG][logstash.runner ] node.name: "136-144-139-19.colo.transip.net"
- [2017-10-19T15:41:06,566][DEBUG][logstash.runner ] *path.config: "/etc/logstash/conf.d"
- [2017-10-19T15:41:06,566][DEBUG][logstash.runner ] path.data: "/usr/share/logstash/data"
- [2017-10-19T15:41:06,566][DEBUG][logstash.runner ] modules.cli: []
- [2017-10-19T15:41:06,566][DEBUG][logstash.runner ] modules: []
- [2017-10-19T15:41:06,566][DEBUG][logstash.runner ] modules_setup: false
- [2017-10-19T15:41:06,566][DEBUG][logstash.runner ] config.test_and_exit: false
- [2017-10-19T15:41:06,566][DEBUG][logstash.runner ] config.reload.automatic: false
- [2017-10-19T15:41:06,566][DEBUG][logstash.runner ] config.support_escapes: false
- [2017-10-19T15:41:06,566][DEBUG][logstash.runner ] config.reload.interval: 3
- [2017-10-19T15:41:06,566][DEBUG][logstash.runner ] metric.collect: true
- [2017-10-19T15:41:06,566][DEBUG][logstash.runner ] pipeline.id: "main"
- [2017-10-19T15:41:06,567][DEBUG][logstash.runner ] pipeline.system: false
- [2017-10-19T15:41:06,567][DEBUG][logstash.runner ] pipeline.workers: 3
- [2017-10-19T15:41:06,567][DEBUG][logstash.runner ] pipeline.output.workers: 1
- [2017-10-19T15:41:06,567][DEBUG][logstash.runner ] pipeline.batch.size: 125
- [2017-10-19T15:41:06,567][DEBUG][logstash.runner ] pipeline.batch.delay: 5
- [2017-10-19T15:41:06,567][DEBUG][logstash.runner ] pipeline.unsafe_shutdown: false
- [2017-10-19T15:41:06,567][DEBUG][logstash.runner ] path.plugins: []
- [2017-10-19T15:41:06,567][DEBUG][logstash.runner ] *config.debug: true (default: false)
- [2017-10-19T15:41:06,567][DEBUG][logstash.runner ] *log.level: "debug" (default: "info")
- [2017-10-19T15:41:06,567][DEBUG][logstash.runner ] version: false
- [2017-10-19T15:41:06,567][DEBUG][logstash.runner ] help: false
- [2017-10-19T15:41:06,568][DEBUG][logstash.runner ] log.format: "plain"
- [2017-10-19T15:41:06,568][DEBUG][logstash.runner ] http.host: "127.0.0.1"
- [2017-10-19T15:41:06,568][DEBUG][logstash.runner ] http.port: 9600..9700
- [2017-10-19T15:41:06,568][DEBUG][logstash.runner ] http.environment: "production"
- [2017-10-19T15:41:06,568][DEBUG][logstash.runner ] queue.type: "memory"
- [2017-10-19T15:41:06,568][DEBUG][logstash.runner ] queue.drain: false
- [2017-10-19T15:41:06,568][DEBUG][logstash.runner ] queue.page_capacity: 262144000
- [2017-10-19T15:41:06,568][DEBUG][logstash.runner ] queue.max_bytes: 1073741824
- [2017-10-19T15:41:06,568][DEBUG][logstash.runner ] queue.max_events: 0
- [2017-10-19T15:41:06,568][DEBUG][logstash.runner ] queue.checkpoint.acks: 1024
- [2017-10-19T15:41:06,568][DEBUG][logstash.runner ] queue.checkpoint.writes: 1024
- [2017-10-19T15:41:06,568][DEBUG][logstash.runner ] queue.checkpoint.interval: 1000
- [2017-10-19T15:41:06,568][DEBUG][logstash.runner ] dead_letter_queue.enable: false
- [2017-10-19T15:41:06,568][DEBUG][logstash.runner ] dead_letter_queue.max_bytes: 1073741824
- [2017-10-19T15:41:06,568][DEBUG][logstash.runner ] slowlog.threshold.warn: -1
- [2017-10-19T15:41:06,568][DEBUG][logstash.runner ] slowlog.threshold.info: -1
- [2017-10-19T15:41:06,568][DEBUG][logstash.runner ] slowlog.threshold.debug: -1
- [2017-10-19T15:41:06,568][DEBUG][logstash.runner ] slowlog.threshold.trace: -1
- [2017-10-19T15:41:06,568][DEBUG][logstash.runner ] path.queue: "/usr/share/logstash/data/queue"
- [2017-10-19T15:41:06,568][DEBUG][logstash.runner ] path.dead_letter_queue: "/usr/share/logstash/data/dead_letter_queue"
- [2017-10-19T15:41:06,569][DEBUG][logstash.runner ] *path.settings: "/etc/logstash" (default: "/usr/share/logstash/config")
- [2017-10-19T15:41:06,569][DEBUG][logstash.runner ] *path.logs: "/var/log/logstash" (default: "/usr/share/logstash/logs")
- [2017-10-19T15:41:06,569][DEBUG][logstash.runner ] --------------- Logstash Settings -------------------
- [2017-10-19T15:41:06,590][DEBUG][logstash.agent ] Agent: Configuring metric collection
- [2017-10-19T15:41:06,592][DEBUG][logstash.instrument.periodicpoller.os] PeriodicPoller: Starting {:polling_interval=>5, :polling_timeout=>120}
- [2017-10-19T15:41:06,610][DEBUG][logstash.instrument.periodicpoller.jvm] PeriodicPoller: Starting {:polling_interval=>5, :polling_timeout=>120}
- [2017-10-19T15:41:06,635][DEBUG][logstash.instrument.periodicpoller.persistentqueue] PeriodicPoller: Starting {:polling_interval=>5, :polling_timeout=>120}
- [2017-10-19T15:41:06,636][DEBUG][logstash.instrument.periodicpoller.deadletterqueue] PeriodicPoller: Starting {:polling_interval=>5, :polling_timeout=>120}
- [2017-10-19T15:41:06,638][DEBUG][logstash.agent ] Reading config file {:config_file=>"/etc/logstash/conf.d/logstash.conf"}
- [2017-10-19T15:41:06,639][DEBUG][logstash.agent ]
- The following is the content of a file {:config_file=>"/etc/logstash/conf.d/logstash.conf"}
- [2017-10-19T15:41:06,639][DEBUG][logstash.agent ]
- input {
- beats {
- host => "127.0.0.1"
- port => 5044
- }
- }
- # The filter part of this file is commented out to indicate that it is
- # optional.
- # filter {
- #
- # }
- output {
- elasticsearch {
- hosts => ["https://749ef3120c86cdbf58c4c002f2344b86.eu-west-1.aws.found.io:9243"]
- user => "Jens"
- password => "pass"
- manage_template => false
- index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
- document_type => "%{[@metadata][type]}"
- }
- }
- [2017-10-19T15:41:06,639][DEBUG][logstash.agent ]
- The following is the merged configuration
- [2017-10-19T15:41:06,639][DEBUG][logstash.agent ]
- input {
- beats {
- host => "127.0.0.1"
- port => 5044
- }
- }
- # The filter part of this file is commented out to indicate that it is
- # optional.
- # filter {
- #
- # }
- output {
- elasticsearch {
- hosts => ["https://749ef3120c86cdbf58c4c002f2344b86.eu-west-1.aws.found.io:9243"]
- user => "Jens"
- password => "pass"
- manage_template => false
- index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
- document_type => "%{[@metadata][type]}"
- }
- }
- [2017-10-19T15:41:06,655][DEBUG][logstash.pipeline ] Compiled pipeline code {:code=>" @inputs = []\n @filters = []\n @outputs = []\n @periodic_flushers = []\n @shutdown_flushers = []\n @generated_objects = {}\n\n @generated_objects[:input_beats_1] = plugin(\"input\", \"beats\", LogStash::Util.hash_merge_many({ \"host\" => (\"127.0.0.1\") }, { \"port\" => 5044 }))\n\n @inputs << @generated_objects[:input_beats_1]\n\n @generated_objects[:output_elasticsearch_2] = plugin(\"output\", \"elasticsearch\", LogStash::Util.hash_merge_many({ \"hosts\" => [(\"https://749ef3120c86cdbf58c4c002f2344b86.eu-west-1.aws.found.io:9243\")] }, { \"user\" => (\"Jens\") }, { \"password\" => (\"Metang96\") }, { \"manage_template\" => (\"false\") }, { \"index\" => (\"%{[@metadata][beat]}-%{+YYYY.MM.dd}\") }, { \"document_type\" => (\"%{[@metadata][type]}\") }))\n\n @outputs << @generated_objects[:output_elasticsearch_2]\n\n define_singleton_method :filter_func do |event|\n events = event\n @logger.debug? && @logger.debug(\"filter received\", \"event\" => event.to_hash)\n events\n end\n define_singleton_method :output_func do |event|\n targeted_outputs = []\n @logger.debug? && @logger.debug(\"output received\", \"event\" => event.to_hash)\n targeted_outputs << @generated_objects[:output_elasticsearch_2]\n \n targeted_outputs\n end"}
- [2017-10-19T15:41:06,689][DEBUG][logstash.plugins.registry] On demand adding plugin to the registry {:name=>"beats", :type=>"input", :class=>LogStash::Inputs::Beats}
- [2017-10-19T15:41:06,694][DEBUG][logstash.plugins.registry] On demand adding plugin to the registry {:name=>"plain", :type=>"codec", :class=>LogStash::Codecs::Plain}
- [2017-10-19T15:41:06,697][DEBUG][logstash.codecs.plain ] config LogStash::Codecs::Plain/@id = "plain_4476099f-7f6f-4bba-95c4-223f151b34b2"
- [2017-10-19T15:41:06,697][DEBUG][logstash.codecs.plain ] config LogStash::Codecs::Plain/@enable_metric = true
- [2017-10-19T15:41:06,697][DEBUG][logstash.codecs.plain ] config LogStash::Codecs::Plain/@charset = "UTF-8"
- [2017-10-19T15:41:06,698][DEBUG][logstash.inputs.beats ] config LogStash::Inputs::Beats/@host = "127.0.0.1"
- [2017-10-19T15:41:06,698][DEBUG][logstash.inputs.beats ] config LogStash::Inputs::Beats/@port = 5044
- [2017-10-19T15:41:06,698][DEBUG][logstash.inputs.beats ] config LogStash::Inputs::Beats/@id = "8f2791f16b92257ba930f259763a80cdb7570108-1"
- [2017-10-19T15:41:06,698][DEBUG][logstash.inputs.beats ] config LogStash::Inputs::Beats/@enable_metric = true
- [2017-10-19T15:41:06,698][DEBUG][logstash.inputs.beats ] config LogStash::Inputs::Beats/@codec = <LogStash::Codecs::Plain id=>"plain_4476099f-7f6f-4bba-95c4-223f151b34b2", enable_metric=>true, charset=>"UTF-8">
- [2017-10-19T15:41:06,698][DEBUG][logstash.inputs.beats ] config LogStash::Inputs::Beats/@add_field = {}
- [2017-10-19T15:41:06,699][DEBUG][logstash.inputs.beats ] config LogStash::Inputs::Beats/@ssl = false
- [2017-10-19T15:41:06,699][DEBUG][logstash.inputs.beats ] config LogStash::Inputs::Beats/@ssl_certificate_authorities = []
- [2017-10-19T15:41:06,699][DEBUG][logstash.inputs.beats ] config LogStash::Inputs::Beats/@ssl_verify_mode = "none"
- [2017-10-19T15:41:06,699][DEBUG][logstash.inputs.beats ] config LogStash::Inputs::Beats/@include_codec_tag = true
- [2017-10-19T15:41:06,699][DEBUG][logstash.inputs.beats ] config LogStash::Inputs::Beats/@ssl_handshake_timeout = 10000
- [2017-10-19T15:41:06,699][DEBUG][logstash.inputs.beats ] config LogStash::Inputs::Beats/@tls_min_version = 1
- [2017-10-19T15:41:06,699][DEBUG][logstash.inputs.beats ] config LogStash::Inputs::Beats/@tls_max_version = 1.2
- [2017-10-19T15:41:06,700][DEBUG][logstash.inputs.beats ] config LogStash::Inputs::Beats/@cipher_suites = ["TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384", "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384", "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256", "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256"]
- [2017-10-19T15:41:06,700][DEBUG][logstash.inputs.beats ] config LogStash::Inputs::Beats/@client_inactivity_timeout = 60
- [2017-10-19T15:41:06,741][DEBUG][logstash.plugins.registry] On demand adding plugin to the registry {:name=>"elasticsearch", :type=>"output", :class=>LogStash::Outputs::ElasticSearch}
- [2017-10-19T15:41:06,745][DEBUG][logstash.codecs.plain ] config LogStash::Codecs::Plain/@id = "plain_ecb1f3b3-2a2c-47b9-9f20-abaf20447d5e"
- [2017-10-19T15:41:06,745][DEBUG][logstash.codecs.plain ] config LogStash::Codecs::Plain/@enable_metric = true
- [2017-10-19T15:41:06,745][DEBUG][logstash.codecs.plain ] config LogStash::Codecs::Plain/@charset = "UTF-8"
- [2017-10-19T15:41:06,747][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@hosts = [https://749ef3120c86cdbf58c4c002f2344b86.eu-west-1.aws.found.io:9243]
- [2017-10-19T15:41:06,747][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@user = "Jens"
- [2017-10-19T15:41:06,747][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@password = <password>
- [2017-10-19T15:41:06,747][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@manage_template = false
- [2017-10-19T15:41:06,747][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@index = "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
- [2017-10-19T15:41:06,747][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@document_type = "%{[@metadata][type]}"
- [2017-10-19T15:41:06,747][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@id = "8f2791f16b92257ba930f259763a80cdb7570108-2"
- [2017-10-19T15:41:06,747][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@enable_metric = true
- [2017-10-19T15:41:06,747][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@codec = <LogStash::Codecs::Plain id=>"plain_ecb1f3b3-2a2c-47b9-9f20-abaf20447d5e", enable_metric=>true, charset=>"UTF-8">
- [2017-10-19T15:41:06,748][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@workers = 1
- [2017-10-19T15:41:06,748][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@template_name = "logstash"
- [2017-10-19T15:41:06,748][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@template_overwrite = false
- [2017-10-19T15:41:06,748][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@parent = nil
- [2017-10-19T15:41:06,748][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@idle_flush_time = 1
- [2017-10-19T15:41:06,748][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@upsert = ""
- [2017-10-19T15:41:06,748][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@doc_as_upsert = false
- [2017-10-19T15:41:06,748][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@script = ""
- [2017-10-19T15:41:06,748][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@script_type = "inline"
- [2017-10-19T15:41:06,748][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@script_lang = "painless"
- [2017-10-19T15:41:06,748][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@script_var_name = "event"
- [2017-10-19T15:41:06,748][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@scripted_upsert = false
- [2017-10-19T15:41:06,748][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@retry_initial_interval = 2
- [2017-10-19T15:41:06,748][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@retry_max_interval = 64
- [2017-10-19T15:41:06,748][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@retry_on_conflict = 1
- [2017-10-19T15:41:06,748][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@pipeline = nil
- [2017-10-19T15:41:06,749][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@action = "index"
- [2017-10-19T15:41:06,749][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@ssl_certificate_verification = true
- [2017-10-19T15:41:06,749][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@sniffing = false
- [2017-10-19T15:41:06,749][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@sniffing_delay = 5
- [2017-10-19T15:41:06,749][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@timeout = 60
- [2017-10-19T15:41:06,749][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@failure_type_logging_whitelist = []
- [2017-10-19T15:41:06,749][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@pool_max = 1000
- [2017-10-19T15:41:06,749][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@pool_max_per_route = 100
- [2017-10-19T15:41:06,749][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@resurrect_delay = 5
- [2017-10-19T15:41:06,749][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@validate_after_inactivity = 10000
- [2017-10-19T15:41:06,749][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@http_compression = false
- [2017-10-19T15:41:06,760][DEBUG][logstash.agent ] starting agent
- [2017-10-19T15:41:06,763][DEBUG][logstash.agent ] starting pipeline {:id=>"main"}
- [2017-10-19T15:41:06,765][DEBUG][logstash.outputs.elasticsearch] Normalizing http path {:path=>nil, :normalized=>nil}
- [2017-10-19T15:41:06,974][INFO ][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[https://Jens:[email protected]:9243/]}}
- [2017-10-19T15:41:06,974][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>https://Jens:[email protected]:9243/, :path=>"/"}
- [2017-10-19T15:41:07,443][WARN ][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=>"https://Jens:[email protected]:9243/"}
- [2017-10-19T15:41:07,552][ERROR][logstash.pipeline ] Error registering plugin {:plugin=>"#<LogStash::OutputDelegator:0x39d9457f @namespaced_metric=#<LogStash::Instrument::NamespacedMetric:0x7d29941f @metric=#<LogStash::Instrument::Metric:0x3df568 @collector=#<LogStash::Instrument::Collector:0x1913b642 @agent=nil, @metric_store=#<LogStash::Instrument::MetricStore:0x6a92eaa2 @store=#<Concurrent::Map:0x000000000644a8 entries=3 default_proc=nil>, @structured_lookup_mutex=#<Mutex:0x5baa1283>, @fast_lookup=#<Concurrent::Map:0x000000000644ac entries=61 default_proc=nil>>>>, @namespace_name=[:stats, :pipelines, :main, :plugins, :outputs, :\"8f2791f16b92257ba930f259763a80cdb7570108-2\"]>, @metric=#<LogStash::Instrument::NamespacedMetric:0x30762b55 @metric=#<LogStash::Instrument::Metric:0x3df568 @collector=#<LogStash::Instrument::Collector:0x1913b642 @agent=nil, @metric_store=#<LogStash::Instrument::MetricStore:0x6a92eaa2 @store=#<Concurrent::Map:0x000000000644a8 entries=3 default_proc=nil>, @structured_lookup_mutex=#<Mutex:0x5baa1283>, @fast_lookup=#<Concurrent::Map:0x000000000644ac entries=61 default_proc=nil>>>>, @namespace_name=[:stats, :pipelines, :main, :plugins, :outputs]>, @logger=#<LogStash::Logging::Logger:0x46f92d33 @logger=#<Java::OrgApacheLoggingLog4jCore::Logger:0x62cc94c5>>, @out_counter=LogStash::Instrument::MetricType::Counter - namespaces: [:stats, :pipelines, :main, :plugins, :outputs, :\"8f2791f16b92257ba930f259763a80cdb7570108-2\", :events] key: out value: 0, @in_counter=LogStash::Instrument::MetricType::Counter - namespaces: [:stats, :pipelines, :main, :plugins, :outputs, :\"8f2791f16b92257ba930f259763a80cdb7570108-2\", :events] key: in value: 0, @strategy=#<LogStash::OutputDelegatorStrategies::Shared:0x479a2e4d @output=<LogStash::Outputs::ElasticSearch hosts=>[https://749ef3120c86cdbf58c4c002f2344b86.eu-west-1.aws.found.io:9243], user=>\"Jens\", password=><password>, manage_template=>false, index=>\"%{[@metadata][beat]}-%{+YYYY.MM.dd}\", document_type=>\"%{[@metadata][type]}\", id=>\"8f2791f16b92257ba930f259763a80cdb7570108-2\", enable_metric=>true, codec=><LogStash::Codecs::Plain id=>\"plain_ecb1f3b3-2a2c-47b9-9f20-abaf20447d5e\", enable_metric=>true, charset=>\"UTF-8\">, workers=>1, template_name=>\"logstash\", template_overwrite=>false, idle_flush_time=>1, doc_as_upsert=>false, script_type=>\"inline\", script_lang=>\"painless\", script_var_name=>\"event\", scripted_upsert=>false, retry_initial_interval=>2, retry_max_interval=>64, retry_on_conflict=>1, action=>\"index\", ssl_certificate_verification=>true, sniffing=>false, sniffing_delay=>5, timeout=>60, pool_max=>1000, pool_max_per_route=>100, resurrect_delay=>5, validate_after_inactivity=>10000, http_compression=>false, ssl=>true>>, @id=\"8f2791f16b92257ba930f259763a80cdb7570108-2\", @time_metric=LogStash::Instrument::MetricType::Counter - namespaces: [:stats, :pipelines, :main, :plugins, :outputs, :\"8f2791f16b92257ba930f259763a80cdb7570108-2\", :events] key: duration_in_millis value: 0, @metric_events=#<LogStash::Instrument::NamespacedMetric:0x48050338 @metric=#<LogStash::Instrument::Metric:0x3df568 @collector=#<LogStash::Instrument::Collector:0x1913b642 @agent=nil, @metric_store=#<LogStash::Instrument::MetricStore:0x6a92eaa2 @store=#<Concurrent::Map:0x000000000644a8 entries=3 default_proc=nil>, @structured_lookup_mutex=#<Mutex:0x5baa1283>, @fast_lookup=#<Concurrent::Map:0x000000000644ac entries=61 default_proc=nil>>>>, @namespace_name=[:stats, :pipelines, :main, :plugins, :outputs, :\"8f2791f16b92257ba930f259763a80cdb7570108-2\", :events]>, @output_class=LogStash::Outputs::ElasticSearch>", :error=>"Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')\n at [Source: (byte[])\"<script>var hashRoute = '/app/kibana';\nvar defaultRoute = '/app/kibana';\n\nvar hash = window.location.hash;\nif (hash.length) {\n window.location = hashRoute + hash;\n} else {\n window.location = defaultRoute;\n}</script>\"; line: 1, column: 2]"}
- [2017-10-19T15:41:07,559][ERROR][logstash.agent ] Pipeline aborted due to error {:exception=>#<LogStash::Json::ParserError: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
- at [Source: (byte[])"<script>var hashRoute = '/app/kibana';
- var defaultRoute = '/app/kibana';
- var hash = window.location.hash;
- if (hash.length) {
- window.location = hashRoute + hash;
- } else {
- window.location = defaultRoute;
- }</script>"; line: 1, column: 2]>, :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/json.rb:41:in `jruby_load'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-7.4.2-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:435:in `get_es_version'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-7.4.2-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:245:in `healthcheck!'", "org/jruby/RubyHash.java:1342:in `each'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-7.4.2-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:237:in `healthcheck!'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-7.4.2-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:329:in `update_urls'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-7.4.2-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:70:in `start'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-7.4.2-java/lib/logstash/outputs/elasticsearch/http_client.rb:290:in `build_pool'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-7.4.2-java/lib/logstash/outputs/elasticsearch/http_client.rb:60:in `initialize'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-7.4.2-java/lib/logstash/outputs/elasticsearch/http_client_builder.rb:101:in `create_http_client'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-7.4.2-java/lib/logstash/outputs/elasticsearch/http_client_builder.rb:97:in `build'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-7.4.2-java/lib/logstash/outputs/elasticsearch.rb:230:in `build_client'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-7.4.2-java/lib/logstash/outputs/elasticsearch/common.rb:24:in `register'", "/usr/share/logstash/logstash-core/lib/logstash/output_delegator_strategies/shared.rb:9:in `register'", "/usr/share/logstash/logstash-core/lib/logstash/output_delegator.rb:43:in `register'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:290:in `register_plugin'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:301:in `register_plugins'", "org/jruby/RubyArray.java:1613:in `each'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:301:in `register_plugins'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:310:in `start_workers'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:235:in `run'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:398:in `start_pipeline'"]}
- [2017-10-19T15:41:07,570][DEBUG][logstash.agent ] Starting puma
- [2017-10-19T15:41:07,571][DEBUG][logstash.agent ] Trying to start WebServer {:port=>9600}
- [2017-10-19T15:41:07,573][DEBUG][logstash.api.service ] [api-service] start
- [2017-10-19T15:41:07,591][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
- [2017-10-19T15:41:10,571][DEBUG][logstash.instrument.periodicpoller.os] PeriodicPoller: Stopping
- [2017-10-19T15:41:10,571][DEBUG][logstash.instrument.periodicpoller.jvm] PeriodicPoller: Stopping
- [2017-10-19T15:41:10,571][DEBUG][logstash.instrument.periodicpoller.persistentqueue] PeriodicPoller: Stopping
- [2017-10-19T15:41:10,572][DEBUG][logstash.instrument.periodicpoller.deadletterqueue] PeriodicPoller: Stopping
- [2017-10-19T15:41:10,576][WARN ][logstash.agent ] stopping pipeline {:id=>"main"}
- [2017-10-19T15:41:10,577][DEBUG][logstash.pipeline ] Closing inputs
- [2017-10-19T15:41:10,578][DEBUG][logstash.inputs.beats ] stopping {:plugin=>"LogStash::Inputs::Beats"}
- [2017-10-19T15:41:10,578][DEBUG][logstash.pipeline ] Closed inputs
- [/details]
- I'm entirely out of ideas. I've looked at the documentation, Googled the error messages... I have no clue why it's not working.
Advertisement
Add Comment
Please, Sign In to add comment