首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >熟悉没有外部访问权限的服务器。需要连接到logz.io

熟悉没有外部访问权限的服务器。需要连接到logz.io
EN

Stack Overflow用户
提问于 2019-04-23 04:39:29
回答 1查看 0关注 0票数 0

我有一些运行Java应用程序的服务器。这些服务器位于专用网络上,无法连接到Internet。Fluentd是instaled,我需要它连接到logz.io.

Telnet测试失败。

代码语言:javascript
复制
root@xxxxx ~]$  telnet listener.logz.io 8071
Trying 52.21.71.179...
root@xxxxx ~]$ 

网络上有代理提供外部访问。我试图设置HTTP_PROXY变量

export HTTP_PROXY = http:// xxxx:3128

但仍然无法正常工作。我不知道还能做什么。你能帮我吗?谢谢

EN

回答 1

Stack Overflow用户

发布于 2019-04-23 14:34:25

我试过用这个

proxy_uri http:// xxxx:3128

但也没有奏效

代码语言:javascript
复制
 @type dummy
 dummy {"hello":"world"}
 tag hello
</source>


<match **>
 @type logzio_buffered
 proxy_uri http://10.7.1.253:3128
 endpoint_url https://listener.logz.io:8071?token=<<token_here>>&type=my_type
 output_include_time true
 output_include_tags true
 http_idle_timeout 10
 <buffer>
     @type memory
     flush_thread_count 4
     flush_interval 3s
     chunk_limit_size 16m      # Logz.io bulk limit is decoupled from chunk_limit_size. Set whatever you want.
     queue_limit_length 4096
 </buffer>
</match>
~       

现在我收到403错误。 2019-04-22 12:45:11 -0500 [warn]: #0 Error connecting to Logz.io. Got exception: 403 "Forbidden" (Try 4/4)

Logz.io表示一切都很好。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/-100006657

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档