add authentication to fluentd instance getting syslogs from cloud foundry application
up vote
0
down vote
favorite
I have a cloud foundry application and I had a requirement to get the logs into an S3 bucket.
I followed the advice here and have used a docker image to push onto a cloud foundry application. Logs now go to the fluentd instance and onto S3.
The problem I have is that the fluentd instance is publicly visible and the cloud foundry provider has not implemented this so we cannot enable container communication.
I can do this
curl -X POST -d 'json="foo":"bar"' https://fluentd.my.domain
And it will record a log.
Is there anyway I can somehow limit traffic to the fluentd instance.
I don't see how I can add a custom header or anything when cloud foundry is sending the syslog.
cloudfoundry fluentd
|
show 1 more comment
up vote
0
down vote
favorite
I have a cloud foundry application and I had a requirement to get the logs into an S3 bucket.
I followed the advice here and have used a docker image to push onto a cloud foundry application. Logs now go to the fluentd instance and onto S3.
The problem I have is that the fluentd instance is publicly visible and the cloud foundry provider has not implemented this so we cannot enable container communication.
I can do this
curl -X POST -d 'json="foo":"bar"' https://fluentd.my.domain
And it will record a log.
Is there anyway I can somehow limit traffic to the fluentd instance.
I don't see how I can add a custom header or anything when cloud foundry is sending the syslog.
cloudfoundry fluentd
Your link shows it is accepting syslog input over TCP/UDP but your curl command is trying to push data over HTTP protocol. Question is, are you using syslog input or http input at fluentd source?. Can you paste your fluentd full config as well?>
– Imran
Nov 9 at 21:04
I am outside of work unfortunately and I do not have the config available but it is not TCP/UDP it is http. If it is cloud foundry app to cloud foundry app then it is http. The curl works
– dagda1
Nov 9 at 21:29
It appears, HTTP Input does not support any auth. stackoverflow.com/questions/38146565/…. if you are using syslog input then we could enable mutual auth between your application and fluentd. Let me know if this helps then I will put it as answer with more details on secure syslog.
– Imran
Nov 10 at 2:23
@Imran syslog won't work, I've been down this path before. I had a syslog input but it would not connect. The reason is The documentation from Cloud Foundry on sending things to Fluentd doesn't appear to be running Fluentd on Cloud Foundry which is why it's talking regular syslog. Currently, anything expecting requests on our cloud foundry provider must be talking HTTP. I've clarified this with the support
– dagda1
Nov 10 at 12:26
When I changed from syslog input to the http input then it worked for the reason I mentioned above.
– dagda1
Nov 10 at 12:26
|
show 1 more comment
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a cloud foundry application and I had a requirement to get the logs into an S3 bucket.
I followed the advice here and have used a docker image to push onto a cloud foundry application. Logs now go to the fluentd instance and onto S3.
The problem I have is that the fluentd instance is publicly visible and the cloud foundry provider has not implemented this so we cannot enable container communication.
I can do this
curl -X POST -d 'json="foo":"bar"' https://fluentd.my.domain
And it will record a log.
Is there anyway I can somehow limit traffic to the fluentd instance.
I don't see how I can add a custom header or anything when cloud foundry is sending the syslog.
cloudfoundry fluentd
I have a cloud foundry application and I had a requirement to get the logs into an S3 bucket.
I followed the advice here and have used a docker image to push onto a cloud foundry application. Logs now go to the fluentd instance and onto S3.
The problem I have is that the fluentd instance is publicly visible and the cloud foundry provider has not implemented this so we cannot enable container communication.
I can do this
curl -X POST -d 'json="foo":"bar"' https://fluentd.my.domain
And it will record a log.
Is there anyway I can somehow limit traffic to the fluentd instance.
I don't see how I can add a custom header or anything when cloud foundry is sending the syslog.
cloudfoundry fluentd
cloudfoundry fluentd
asked Nov 9 at 20:25
dagda1
9,93230129257
9,93230129257
Your link shows it is accepting syslog input over TCP/UDP but your curl command is trying to push data over HTTP protocol. Question is, are you using syslog input or http input at fluentd source?. Can you paste your fluentd full config as well?>
– Imran
Nov 9 at 21:04
I am outside of work unfortunately and I do not have the config available but it is not TCP/UDP it is http. If it is cloud foundry app to cloud foundry app then it is http. The curl works
– dagda1
Nov 9 at 21:29
It appears, HTTP Input does not support any auth. stackoverflow.com/questions/38146565/…. if you are using syslog input then we could enable mutual auth between your application and fluentd. Let me know if this helps then I will put it as answer with more details on secure syslog.
– Imran
Nov 10 at 2:23
@Imran syslog won't work, I've been down this path before. I had a syslog input but it would not connect. The reason is The documentation from Cloud Foundry on sending things to Fluentd doesn't appear to be running Fluentd on Cloud Foundry which is why it's talking regular syslog. Currently, anything expecting requests on our cloud foundry provider must be talking HTTP. I've clarified this with the support
– dagda1
Nov 10 at 12:26
When I changed from syslog input to the http input then it worked for the reason I mentioned above.
– dagda1
Nov 10 at 12:26
|
show 1 more comment
Your link shows it is accepting syslog input over TCP/UDP but your curl command is trying to push data over HTTP protocol. Question is, are you using syslog input or http input at fluentd source?. Can you paste your fluentd full config as well?>
– Imran
Nov 9 at 21:04
I am outside of work unfortunately and I do not have the config available but it is not TCP/UDP it is http. If it is cloud foundry app to cloud foundry app then it is http. The curl works
– dagda1
Nov 9 at 21:29
It appears, HTTP Input does not support any auth. stackoverflow.com/questions/38146565/…. if you are using syslog input then we could enable mutual auth between your application and fluentd. Let me know if this helps then I will put it as answer with more details on secure syslog.
– Imran
Nov 10 at 2:23
@Imran syslog won't work, I've been down this path before. I had a syslog input but it would not connect. The reason is The documentation from Cloud Foundry on sending things to Fluentd doesn't appear to be running Fluentd on Cloud Foundry which is why it's talking regular syslog. Currently, anything expecting requests on our cloud foundry provider must be talking HTTP. I've clarified this with the support
– dagda1
Nov 10 at 12:26
When I changed from syslog input to the http input then it worked for the reason I mentioned above.
– dagda1
Nov 10 at 12:26
Your link shows it is accepting syslog input over TCP/UDP but your curl command is trying to push data over HTTP protocol. Question is, are you using syslog input or http input at fluentd source?. Can you paste your fluentd full config as well?>
– Imran
Nov 9 at 21:04
Your link shows it is accepting syslog input over TCP/UDP but your curl command is trying to push data over HTTP protocol. Question is, are you using syslog input or http input at fluentd source?. Can you paste your fluentd full config as well?>
– Imran
Nov 9 at 21:04
I am outside of work unfortunately and I do not have the config available but it is not TCP/UDP it is http. If it is cloud foundry app to cloud foundry app then it is http. The curl works
– dagda1
Nov 9 at 21:29
I am outside of work unfortunately and I do not have the config available but it is not TCP/UDP it is http. If it is cloud foundry app to cloud foundry app then it is http. The curl works
– dagda1
Nov 9 at 21:29
It appears, HTTP Input does not support any auth. stackoverflow.com/questions/38146565/…. if you are using syslog input then we could enable mutual auth between your application and fluentd. Let me know if this helps then I will put it as answer with more details on secure syslog.
– Imran
Nov 10 at 2:23
It appears, HTTP Input does not support any auth. stackoverflow.com/questions/38146565/…. if you are using syslog input then we could enable mutual auth between your application and fluentd. Let me know if this helps then I will put it as answer with more details on secure syslog.
– Imran
Nov 10 at 2:23
@Imran syslog won't work, I've been down this path before. I had a syslog input but it would not connect. The reason is The documentation from Cloud Foundry on sending things to Fluentd doesn't appear to be running Fluentd on Cloud Foundry which is why it's talking regular syslog. Currently, anything expecting requests on our cloud foundry provider must be talking HTTP. I've clarified this with the support
– dagda1
Nov 10 at 12:26
@Imran syslog won't work, I've been down this path before. I had a syslog input but it would not connect. The reason is The documentation from Cloud Foundry on sending things to Fluentd doesn't appear to be running Fluentd on Cloud Foundry which is why it's talking regular syslog. Currently, anything expecting requests on our cloud foundry provider must be talking HTTP. I've clarified this with the support
– dagda1
Nov 10 at 12:26
When I changed from syslog input to the http input then it worked for the reason I mentioned above.
– dagda1
Nov 10 at 12:26
When I changed from syslog input to the http input then it worked for the reason I mentioned above.
– dagda1
Nov 10 at 12:26
|
show 1 more comment
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53232826%2fadd-authentication-to-fluentd-instance-getting-syslogs-from-cloud-foundry-applic%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Your link shows it is accepting syslog input over TCP/UDP but your curl command is trying to push data over HTTP protocol. Question is, are you using syslog input or http input at fluentd source?. Can you paste your fluentd full config as well?>
– Imran
Nov 9 at 21:04
I am outside of work unfortunately and I do not have the config available but it is not TCP/UDP it is http. If it is cloud foundry app to cloud foundry app then it is http. The curl works
– dagda1
Nov 9 at 21:29
It appears, HTTP Input does not support any auth. stackoverflow.com/questions/38146565/…. if you are using syslog input then we could enable mutual auth between your application and fluentd. Let me know if this helps then I will put it as answer with more details on secure syslog.
– Imran
Nov 10 at 2:23
@Imran syslog won't work, I've been down this path before. I had a syslog input but it would not connect. The reason is The documentation from Cloud Foundry on sending things to Fluentd doesn't appear to be running Fluentd on Cloud Foundry which is why it's talking regular syslog. Currently, anything expecting requests on our cloud foundry provider must be talking HTTP. I've clarified this with the support
– dagda1
Nov 10 at 12:26
When I changed from syslog input to the http input then it worked for the reason I mentioned above.
– dagda1
Nov 10 at 12:26