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

ZeroMQ Json Output #2

Merged
merged 2 commits into from
Feb 1, 2014
Merged

ZeroMQ Json Output #2

merged 2 commits into from
Feb 1, 2014

Conversation

jrossi
Copy link
Member

@jrossi jrossi commented Jan 25, 2014

This is a complete patch that will allow the outputing of all alerts
to a zeromq PUB socket in JSON format.

New Config:

<ossec>
  <global>
      <zeromq_output>yes|no</zeromq_output>
      <zeromq_uri>tcp://localhost:11111</zeromq_uri>

Somethings had to change to allow this to work. Based on the
preprossor defines

  • WINDOWS was redefined by OSSEC and is used by GCC changed
    the define to to DECODER_WINDOWS
  • __name was redefinied by OSSEC and is used by GCC changed
    the defeine to be __ossec_name

This is a complete patch that will allow the outputing of all alerts
to a zeromq PUB socket in JSON format.

New Config:
<ossec>
  <global>
      <zeromq_output>yes|no</zeromq_output>
          <zeromq_uri>tcp://localhost:11111</zeromq_uri>

Somethings had to change to allow this to work.  Based on the
preprossor defines
- WINDOWS was redefined by OSSEC and is used by GCC changed
  the define to to DECODER_WINDOWS
- __name was redefinied by OSSEC and is used by GCC changed
  the defeine to be __ossec_name
@ghost ghost assigned jbcheng Jan 25, 2014
@jrossi
Copy link
Member Author

jrossi commented Jan 29, 2014

Does anyone have any questions? This should be low impact change the code paths are well know and requires a custom make setzeromq to enable.

@jrossi
Copy link
Member Author

jrossi commented Jan 30, 2014

Does anyone have an questions about this pull request? @ddpbsd @jbcheng ?

@jbcheng
Copy link
Contributor

jbcheng commented Feb 1, 2014

No objection. I am going to Merge this one.

jbcheng added a commit that referenced this pull request Feb 1, 2014
@jbcheng jbcheng merged commit eeba817 into ossec:master Feb 1, 2014
@jrossi
Copy link
Member Author

jrossi commented Feb 1, 2014

Great. I will open a pull request to update the docs. I will have more with this json Stuff coming.

Sent from my iPhone

On Jan 31, 2014, at 8:06 PM, "JB Cheng" [email protected] wrote:

Merged #2.


Reply to this email directly or view it on GitHub.

@jrossi jrossi deleted the output-zeromq-json branch February 2, 2014 03:49
ddpbsd pushed a commit that referenced this pull request Feb 25, 2014
jrossi added a commit that referenced this pull request Apr 25, 2014
jrossi added a commit that referenced this pull request Oct 7, 2014
jrossi added a commit that referenced this pull request Oct 7, 2014
cgzones added a commit that referenced this pull request Oct 9, 2014
cgzones added a commit that referenced this pull request Feb 5, 2015
cgzones added a commit that referenced this pull request Feb 6, 2015
ddpbsd pushed a commit that referenced this pull request Sep 29, 2015
Fix truncated "action" on Cisco PIX/ASA
cgzones added a commit to cgzones/ossec-hids that referenced this pull request Jan 2, 2018
cgzones added a commit to cgzones/ossec-hids that referenced this pull request Jan 2, 2018
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.

2 participants