{"action":"created","issue":{"url":"https://api.github.com/repos/awslabs/amazon-kinesis-agent/issues/61","repository_url":"https://api.github.com/repos/awslabs/amazon-kinesis-agent","labels_url":"https://api.github.com/repos/awslabs/amazon-kinesis-agent/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/awslabs/amazon-kinesis-agent/issues/61/comments","events_url":"https://api.github.com/repos/awslabs/amazon-kinesis-agent/issues/61/events","html_url":"https://github.com/awslabs/amazon-kinesis-agent/issues/61","id":195512242,"number":61,"title":"How to send logs via proxy?","user":{"login":"CheyiLin","id":2572321,"avatar_url":"https://avatars.githubusercontent.com/u/2572321?v=3","gravatar_id":"","url":"https://api.github.com/users/CheyiLin","html_url":"https://github.com/CheyiLin","followers_url":"https://api.github.com/users/CheyiLin/followers","following_url":"https://api.github.com/users/CheyiLin/following{/other_user}","gists_url":"https://api.github.com/users/CheyiLin/gists{/gist_id}","starred_url":"https://api.github.com/users/CheyiLin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CheyiLin/subscriptions","organizations_url":"https://api.github.com/users/CheyiLin/orgs","repos_url":"https://api.github.com/users/CheyiLin/repos","events_url":"https://api.github.com/users/CheyiLin/events{/privacy}","received_events_url":"https://api.github.com/users/CheyiLin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-14T11:56:30Z","updated_at":"2016-12-14T16:30:54Z","closed_at":null,"body":"I've tried injecting following Java args into launch script `start-aws-kinesis-agent`:\r\n```\r\n-Djava.net.useSystemProxies=true\r\n-Dhttp.nonProxyHosts=localhost|127.0.0.1|10.*.*.*|*.mydomain.com\r\n-Dhttp.proxyHost=http://proxy.mydomain.com\r\n-Dhttp.proxyPort=8080\r\n-Dhtttps.proxyHost=https://proxy.mydomain.com\r\n-Dhttps.proxyPort=8443\r\n```\r\nand some well known environment variables:\r\n```\r\nHTTP_PROXY=http://proxy.mydomain.com:8080\r\nHTTPS_PROXY=http://proxy.mydomain.com:8443\r\nhttp_proxy=http://proxy.mydomain.com:8080\r\nhttps_proxy=http://proxy.mydomain.com:8443\r\n```\r\nbut no luck until I realized that it's not working because the agent uses Apache http client library.\r\n\r\nIs it possible to send logs via proxy by setting specific environment variables or command line options?"},"comment":{"url":"https://api.github.com/repos/awslabs/amazon-kinesis-agent/issues/comments/267081733","html_url":"https://github.com/awslabs/amazon-kinesis-agent/issues/61#issuecomment-267081733","issue_url":"https://api.github.com/repos/awslabs/amazon-kinesis-agent/issues/61","id":267081733,"user":{"login":"pfifer","id":18317277,"avatar_url":"https://avatars.githubusercontent.com/u/18317277?v=3","gravatar_id":"","url":"https://api.github.com/users/pfifer","html_url":"https://github.com/pfifer","followers_url":"https://api.github.com/users/pfifer/followers","following_url":"https://api.github.com/users/pfifer/following{/other_user}","gists_url":"https://api.github.com/users/pfifer/gists{/gist_id}","starred_url":"https://api.github.com/users/pfifer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfifer/subscriptions","organizations_url":"https://api.github.com/users/pfifer/orgs","repos_url":"https://api.github.com/users/pfifer/repos","events_url":"https://api.github.com/users/pfifer/events{/privacy}","received_events_url":"https://api.github.com/users/pfifer/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T16:30:54Z","updated_at":"2016-12-14T16:30:54Z","body":"How were you injecting the define options into the start script?  Were you setting JVM_ARGS?  Looking at the AWS Client Configuration it should use the system properties https.proxyHost, and https.proxyPort if they're set.\r\n\r\nYou should be able to do something like\r\n```\r\nJVM_ARGS='-Dhttps.proxyHost=https://proxy.mydomain.com -Dhttps.proxyPort=8443' start-aws-kinesis-agent\r\n```\r\n\r\nThat should work without needing to export the JVM_ARGS environment variable.  "}}
{"actor":{"display_login":"pfifer"}}