Logstash启动报错:401的问题解决

这篇具有很好参考价值的文章主要介绍了Logstash启动报错:401的问题解决。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

[2022-02-09T16:22:36,652][WARN ][logstash.outputs.elasticsearch][main] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://11.11.12.12:9211/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :error=>"Got response code '401' contacting Elasticsearch at URL 'http://11.11.12.12:9211/'"}
[2022-02-09T16:22:38,909][WARN ][filewatch.tailmode.handlers.createinitial][main][21bb5051658f1af1378fa6e38baa09d0cf3ad7d12133847f447875c3dd213c13] failed to open file {:path=>"/data/HOST_20220204012618_20220204012719_002000023.txt", :exception=>Errno::EMFILE, :message=>"Too many open files - Too many open files"}

[2021-04-11T10:45:34,991][WARN ][logstash.outputs.elasticsearch][main] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://192.168.10.233:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :error=>"Got response code '401' contacting Elasticsearch at URL 'http://192.168.10.233:9200/'"}

Logstash启动报错:401的问题解决,logstash,java,大数据 

原因: logstash的conf文件没有配置ES的账号密码, 配置上账号密码即可

Logstash启动报错:401的问题解决,logstash,java,大数据

 文章来源地址https://www.toymoban.com/news/detail-644012.html

到了这里,关于Logstash启动报错:401的问题解决的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • elk的时候logstash传送elasticsearch的数据一直失败报错403

          message: \\\"blocked by: [FORBIDDEN/8/index write (api)];: [cluster_block_exception] blocked by: [FORBIDDEN/8/index write (api)];\\\" kibana中输入执行下边的 PUT /_all/_settings {   \\\"index.blocks.write\\\": null } logstash.outputs.elasticsearch] Encountered a retryable error. Will Retry with exponential backoff  {:code=403, :url=  以上问题最主要

    2024年02月15日
    浏览(34)
  • logstash同步mysql数据到es(三、es模板问题)

     相关问题汇总: logstash同步mysql数据到es(一、es模板问题,请求返回400) logstash同步mysql数据到es(二、jdbc_driver_library问题)_(please check user and group permissions for the p-CSDN博客 logstash同步mysql数据到es(三、es模板问题)-CSDN博客 使用docker实现logstash同步mysql到es-CSDN博客 [INFO ] 2023-12-11 09

    2024年01月17日
    浏览(36)
  • 启动logstash时报错

    报错1 Logstash could not be started because there is already another instance using the configured data directory. If you wish to run multiple instances, you must change the “path.data” setting. 报错原因: 之前运行的instance有缓冲,默认保存在data目录下 解决方法: 报错2 [2022-08-26T11:14:57,802][ERROR][logstash.outputs.elast

    2024年02月16日
    浏览(29)
  • docker搭建并启动Logstash

    2024年02月11日
    浏览(22)
  • ELK之Logstash启动异常:Logstash could not be started because there is already...

    Logstash启动异常: Logstash could not be started because there is already another instance using the configured data directory. If you wish to run multiple instances, you must change the \\\"path.data\\\" setting. 提示我们已经有一个实例在用data目录了,如果需要配置多个实例,则需要显式的配置path.data的值。 当然我们可以

    2024年02月07日
    浏览(32)
  • logstash向es同步数据报错:retrying failed action with response code: 403 ({“type“=>“cluster_block_exce

    使用logstash向es同步数据报错: [logstash.outputs.elasticsearch] retrying failed action with response code: 403 ({\\\"type\\\"=\\\"cluster_block_exception\\\", \\\"reason\\\"=\\\"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];\\\"}) 服务器磁盘空间满了导致es索引为只读状态。 1、清理磁盘,空出更大磁盘空间或直接扩充磁盘空

    2024年02月16日
    浏览(24)
  • Logstash:如何使用 Logstash 解析并摄入 JSON 数据到 Elasticsearch

    在我之前的文章 “Logstash:Data 转换,分析,提取,丰富及核心操作” 有涉及到这个话题。今天我想使用一个具体的例子来更深入地展示。   我们先来把如下的数据拷贝下来,并保存到一个叫做 sample.json 的文件中。我们可以把这个文件置于 Logstash 的安装根目录下。 sample.j

    2024年02月02日
    浏览(32)
  • 最近在搭建ELK日志平台时,logstash报错JSON parse error

    直接进入正题,我在搭建elk日志,使用最简单的log4j2 socket json格式 输出到logstash. 但是logstash报错如下: [WARN ] 2023-08-30 10:15:17.766 [nioEventLoopGroup-2-2] jsonlines - JSON parse error, original data now in message field {:message=“incompatible json object type=java.lang.String , only hash map or arrays are supported”

    2024年02月10日
    浏览(27)
  • logstash连接elasticsearch被拒绝,如何解决-

    [2023-04-25T04:51:55,848][WARN ][logstash.outputs.elasticsearch][main] Attempted to resurrect connection to dead ES instance, but got an error {:url=\\\"http://elastic:xxxxxx@127.0.0.1:9200/\\\", :exception=LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :message=\\\"Elasticsearch Unreachable: [http://elastic:xxxxxx@127.0.0.1:9200/][Manticor

    2024年02月16日
    浏览(38)
  • logstash grok解析Java log实践

    针对Java配置的日志格式如下: %d表示日期, %thread表示线程名, %-5level:级别从左显示5个字符宽度 %msg:日志消息, %logger{50}包名缩写, %n是换行符 转换为grok解析表达式: 解析后效果: spring boot 默认格式解析:

    2024年02月13日
    浏览(28)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包