[syslog-ng] Sending Messages to Slack via a HTTP Proxy
Frank Crawford
Frank.Crawford at ac3.com.au
Wed Jun 26 12:17:01 UTC 2019
Attila,
Thank you, with that information I should be able to get it working.
Regards
Frank
--
[http://www.ac3.com.au/emailsigs/v2/avatar000048.png]<http://www.ac3.com.au/about-us/work-with-us>
Frank Crawford
Technology and Infrastructure Manager
AC3
t 02 9199 0995 | m 0401 714 870
e frank.crawford at ac3.com.au<mailto:frank.crawford at ac3.com.au>
Level 8 East, 8 Central Ave, Eveleigh NSW 2015
[http://www.ac3.com.au/emailsigs/v2/linkedin.png]<https://www.linkedin.com/company/ac3>
[http://www.ac3.com.au/emailsigs/v2/twitter.png]<https://twitter.com/ac3ptyltd>
On Wed, 2019-06-26 at 12:13 +0000, Attila Szakacs (aszakacs) wrote:
Hi Frank,
Syslog-ng uses libcurl for the http destination (which handles the slack destination).
A snippet from libcurl-tutorial(3), Proxies/Environment Variables section:
libcurl automatically checks and uses a set of environment variables to know what proxies to use for certain protocols. The names of the variables are following an ancient de facto standard and are built up as "[protocol]_proxy" (note the lower casing). Which makes the variable 'http_proxy' checked for a name of a proxy to use when the input URL is HTTP.
I believe http_proxy and https_proxy environment variables are the way to go.
Best regards,
Attila
________________________________
From: syslog-ng <syslog-ng-bounces at lists.balabit.hu> on behalf of Frank Crawford <Frank.Crawford at ac3.com.au>
Sent: Wednesday, June 26, 2019 10:08 AM
To: syslog-ng at lists.balabit.hu
Subject: Re: [syslog-ng] Sending Messages to Slack via a HTTP Proxy
CAUTION: This email originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe.
Attila,
But on Linux systems there is no standard way of defining proxy settings, so does it follow the environment variables (http_proxy, https_proxy, etc) or whereever NetworkManager writes it, or where? As well, note this is a server, not a workstation, so it isn't automatically setup for a proxy.
Thanks
Frank
--
[http://www.ac3.com.au/emailsigs/v2/avatar000048.png]<http://www.ac3.com.au/about-us/work-with-us> Frank Crawford
Technology and Infrastructure Manager
AC3
t 02 9199 0995 | m 0401 714 870
e frank.crawford at ac3.com.au<mailto:frank.crawford at ac3.com.au>
Level 8 East, 8 Central Ave, Eveleigh NSW 2015 [http://www.ac3.com.au/emailsigs/v2/linkedin.png] <https://www.linkedin.com/company/ac3>
[http://www.ac3.com.au/emailsigs/v2/twitter.png]<https://twitter.com/ac3ptyltd>
On Wed, 2019-06-26 at 07:18 +0000, Attila Szakacs (aszakacs) wrote:
Hi Frank,
Syslog-ng uses your system's proxy settings, there is no option to set it in your syslog-ng configuration.
Best regards,
Attila
________________________________
From: syslog-ng <syslog-ng-bounces at lists.balabit.hu> on behalf of Frank Crawford <Frank.Crawford at ac3.com.au>
Sent: Wednesday, June 26, 2019 7:50 AM
To: syslog-ng at lists.balabit.hu
Subject: [syslog-ng] Sending Messages to Slack via a HTTP Proxy
CAUTION: This email originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe.
We have recently upgraded to syslog-ng v3.19 so we can use the slack hook, but have an issue that to access the URL we will need to go through a squid web proxy.
How do we configure the details of the proxy in either syslog-ng or in the slack destination?
Regards
Frank
--
[http://www.ac3.com.au/emailsigs/v2/ac3_logo.png]<http://www.ac3.com.au>
the human touch in a technical world Frank Crawford
Technology and Infrastructure Manager
t 02 9199 0995 | m 0401 714 870
e frank.crawford at ac3.com.au<mailto:frank.crawford at ac3.com.au>
Level 8 East, 8 Central Ave, Eveleigh NSW 2015 [http://www.ac3.com.au/emailsigs/v2/linkedin.png] <https://www.linkedin.com/company/ac3>
[http://www.ac3.com.au/emailsigs/v2/twitter.png]<https://twitter.com/ac3ptyltd>
[http://www.ac3.com.au/emailsigs/v2/iso.png]<http://www.ac3.com.au/about-us/news/double-iso-certification-ac3> This email is for intended recipients only. If you are not an intended recipient, you must not disclose, copy or distribute this email to others or act upon the information contained in this email in any way. This email may contain privileged or confidential information. If you have received this email in error, please notify the sender and then delete it from your system.
______________________________________________________________________________
Member info:
<https://lists.balabit.hu/mailman/listinfo/syslog-ng>
https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation:
<http://www.balabit.com/support/documentation/?product=syslog-ng>
http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ:
<http://www.balabit.com/wiki/syslog-ng-faq>
http://www.balabit.com/wiki/syslog-ng-faq
______________________________________________________________________________
Member info:
<https://lists.balabit.hu/mailman/listinfo/syslog-ng>
https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation:
<http://www.balabit.com/support/documentation/?product=syslog-ng>
http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ:
<http://www.balabit.com/wiki/syslog-ng-faq>
http://www.balabit.com/wiki/syslog-ng-faq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20190626/d3588426/attachment-0001.html>
More information about the syslog-ng
mailing list