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.










share|improve this question





















  • 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















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.










share|improve this question





















  • 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













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.










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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

















  • 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


















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














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





















































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







Popular posts from this blog

Kleinkühnau

Makov (Slowakei)

Deutsches Schauspielhaus