Skip to content

Conversation

@BuffaloWill
Copy link
Contributor

Proposed changes

Currently, logger.go overwrites most user provided CLI ElasticSearch options. To test set "-elastic-ssl", "-elastic-username", or "-elastic-password" and notice these are not sent to the ElasticSearch cluster. The issue is on line 52-55 of logger.go which take in two user provided options but ignore the rest. This PR fixes that by including all supplied ES options. This behaved correctly on a ES server I tested against.

Checklist

I am not sure how to run the checks. Any help with that would be great. Thank you!

  • [X ] Pull request is created against the dev branch
  • All checks passed (lint, unit/integration/regression tests etc.) with my changes
  • [ X] I have added tests that prove my fix is effective or that my feature works
  • [ X] I have added necessary documentation (if appropriate)

@ehsandeep ehsandeep requested a review from parrasajad July 27, 2022 10:03
@ehsandeep ehsandeep merged commit c2878a4 into projectdiscovery:dev Jul 28, 2022
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.

4 participants