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

问题描述 投票:0回答:1

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

Telnet测试失败。

root@xxxxx ~]$  telnet listener.logz.io 8071
Trying 52.21.71.179...
root@xxxxx ~]$ 

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

export HTTP_PROXY = http://x.x.x.x:3128

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

networking proxy centos fluentd logz.io
1个回答
0
投票

我试过用这个

proxy_uri http://x.x.x.x:3128

但也没有奏效

 @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表示一切都很好。

© www.soinside.com 2019 - 2024. All rights reserved.