首页 > 其他分享 >:error=>"Elasticsearch Unreachable: [http://192.168.100.44:9200/][Manticore::SocketException

:error=>"Elasticsearch Unreachable: [http://192.168.100.44:9200/][Manticore::SocketException

时间:2024-04-10 15:12:11浏览次数:30  
标签:SocketException 100.44 http 04 17 messages 2024 logstash log

[2024-04-10T14:02:09,005][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://192.168.100.44:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://192.168.100.44:9200/][Manticore::SocketException] 拒绝连接 (Connection refused)"}

[root@cong11 ~]# su elk 
切换普通用户
[elk@cong11 elasticsearch-7.3.0]$ ls
bin config jdk lib LICENSE.txt logs modules NOTICE.txt plugins README.textile

[elk@cong11 elasticsearch-7.3.0]$ ./bin/elasticsearch
在普通用户启动
[root@cong11 ~]# logstash -f /usr/local/logstash-7.3.0/config/logstash.conf
退出普通用户执行

 

 

结果

[2024-04-10T14:17:38,399][INFO ][logstash.javapipeline ] Pipeline started {"pipeline.id"=>"main"}
[2024-04-10T14:17:39,215][INFO ][filewatch.observingtail ] START, creating Discoverer, Watch with file and sincedb collections
[2024-04-10T14:17:39,525][INFO ][org.logstash.beats.Server] Starting server on port: 5044
[2024-04-10T14:17:39,698][INFO ][logstash.agent ] Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>[]}
[2024-04-10T14:17:41,955][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
/usr/local/logstash-7.3.0/vendor/bundle/jruby/2.5.0/gems/awesome_print-1.7.0/lib/awesome_print/formatters/base_formatter.rb:31: warning: constant ::Fixnum is deprecated
{
"@timestamp" => 2024-04-10T06:17:43.162Z,
"type" => "messages_log",
"path" => "/var/log/messages",
"host" => "cong11",
"message" => "Apr 10 14:06:45 localhost su: (to elk) root on pts/3",
"@version" => "1"
}
{
"@timestamp" => 2024-04-10T06:17:43.088Z,
"type" => "messages_log",
"path" => "/var/log/messages",
"host" => "cong11",
"message" => "Apr 10 14:05:04 localhost su: (to elk) root on pts/3",
"@version" => "1"
}
{
"@timestamp" => 2024-04-10T06:17:43.165Z,
"type" => "messages_log",
"path" => "/var/log/messages",
"host" => "cong11",
"message" => "Apr 10 14:08:02 localhost su: (to elk) root on pts/3",
"@version" => "1"
}
{
"@timestamp" => 2024-04-10T06:17:43.167Z,
"type" => "messages_log",
"path" => "/var/log/messages",
"host" => "cong11",
"message" => "Apr 10 14:09:59 localhost su: (to elk) root on pts/3",
"@version" => "1"

 

标签:SocketException,100.44,http,04,17,messages,2024,logstash,log
From: https://www.cnblogs.com/dyysh/p/18126063

相关文章

  • Python异步HTTP客户端和服务器功能的底层库之httpcore使用详解
    概要httpcore库是一个提供异步HTTP客户端和服务器功能的底层库,它是许多高级HTTP客户端库的基础,如httpx。httpcore旨在提供一个快速、稳定且易于使用的HTTP组件。安装通过pip可以轻松安装httpcore:pip install httpcore特性异步支持:原生支持异步操作,提高I/O效率。......
  • 【转载 dudu】 HttpClient使用预热和长连接
    C#中HttpClient使用注意:预热与长连接最近在测试一个第三方API,准备集成在我们的网站应用中。API的调用使用的是.NET中的HttpClient,由于这个API会在关键业务中用到,对调用API的整体响应速度有严格要求,所以对HttpClient有了格外的关注。开始测试的时候,只在客户端通过HttpClient用Pos......
  • java中的远程调用http
    分享一下项目中用过的远程调用方法并总结两种请求方式的差别http远程调用一般分为两种get和post(其它方式暂不考虑)pom包<!--http远程调用--><dependency><groupId>org.apache.httpcomponents</groupId><artifactId>httpclient</artifa......
  • 【http】http 缓存
    http缓存1关于缓存什么是缓存?没有必要重新获取的资源可以存储为什么需要缓存?让页面加载更快,减少网络请求和体积,网络请求不稳定哪些资源可以缓存?静态资源(jscssimg)2http缓存策略(强制缓存+协商缓存)2.1http缓存-强制缓存Cache-ControlResponseHeaders中......
  • xmlhttprequest upload 实现前端上传进度
    elementuiupload代码片段exportdefaultfunctionupload(option){if(typeofXMLHttpRequest==='undefined'){return;}constxhr=newXMLHttpRequest();constaction=option.action;if(xhr.upload){xhr.upload.onprogress=......
  • Android平台下轻量级http网络传输库
    Android平台下轻量级http网络传输库 更新时间:2016年01月15日15:06:36 作者:rohsuton  这篇文章主要介绍了Android平台下轻量级http网络传输库的相关资料,需要的朋友可以参考下 AsyncHttpHelp是一个android平台下基于httpclient开发的HTTP网络请求工具。优点功能......
  • MFC通过Http请求上传文件
    MFC通过Http请求上传文件voidCMFCApplication1Dlg::HttpPostFile(stringurl,CStringfile,stringparamName,stringcontentType){CInternetSessionpSession(_T("ic_PostWav"));//可以随意CHttpConnection*pConnect;CHttpFile*pFile;//通过......
  • Firefox火狐浏览器控制台,提示:已拦截跨源请求:同源策略禁止读取位于 http://127.0.0.1
    前言全局说明Firefox火狐浏览器控制台,提示:已拦截跨源请求一、火狐官方说明https://developer.mozilla.org/zh-CN/docs/Web/HTTP/CORS/Errors/CORSMissingAllowOrigin?utm_source=devtools&utm_medium=firefox-cors-errors&utm_campaign=default二、修改浏览器方法[原文......
  • [网络/HTTPS/Java] PKI公钥基础设施体系:基础概念篇
    0序看过上一篇文章、且有点懵的朋友,可以参看本篇————针对PKI体系的核心概念进行解释。1PKI体系(公开密钥基础设施体系)1.1PKI体系是什么?PKI是PublicKeyInfrastructure的缩写,中文叫做公开密钥基础设施,也就是利用公开密钥机制建立起来的基础设施。PKI的主要......
  • 在GitHub上用HTTP端口使用ssh
    问题:在实现本地仓库与GitHub仓库相关联时出现下图问题尝试了很多方法包括但不限于:更改公私钥密码,更改防火墙,检查仓库UPL等方法但都没有效果解决方法:通过HTTPS端口使用SSH测试有时,防火墙完全拒绝允许SSH连接。如果无法使用带有凭据缓存的HTTPS克隆,则可以尝试使用通过......