Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HTTP output handler #523

Merged
merged 1 commit into from
Feb 11, 2019
Merged

Add HTTP output handler #523

merged 1 commit into from
Feb 11, 2019

Conversation

mfdii
Copy link
Member

@mfdii mfdii commented Feb 8, 2019

Adding a simple HTTP handler that allows you to post JSON output directly to a HTTP endpoint instead of the current method of using the program output and curl.

This was implemented in C++ and the outputs.lua calls back into C++ to handle the the http post using libcurl.

This can be enabled by setting the http_output option in falco.yaml to enabled: true.

http_output:
  enabled: true
  url: http://some.url/you/post/to

@mfdii
Copy link
Member Author

mfdii commented Feb 8, 2019

@mstemm this is failing on gcc-6, just fyi. I know you're working on it

Copy link
Contributor

@mstemm mstemm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Since the http request is blocking we should note this in the docs/wiki. We'll fix the whole output channels to be non-blocking in a (soon) later PR.

@mstemm mstemm merged commit 79d408f into dev Feb 11, 2019
@mstemm mstemm deleted the mfdii/add_http_output branch February 11, 2019 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants