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

[BUG] Hostlookup feed name is recovered only from text db types #201

Closed
frikilax opened this issue Sep 11, 2020 · 0 comments · Fixed by #202
Closed

[BUG] Hostlookup feed name is recovered only from text db types #201

frikilax opened this issue Sep 11, 2020 · 0 comments · Fixed by #202
Assignees
Labels
bug Something isn't working easy
Milestone

Comments

@frikilax
Copy link
Member

Describe the bug
hostlookup's feed name information is only here when using a "text" type db.

Plateform (please complete the following information):

  • OS (version): All
  • Darwin version: since 1.2.7

To Reproduce
Steps to reproduce the behavior:

  1. Configure a hostlookup filter with a json or rsyslog type db (and at least an entry in it)
  2. Start darwin
  3. Start an interactive session with the darwin-client-python
  4. connect to the hostlookup filter through its unix socket
  5. send one of the entries from the db to the filter
  6. look into the alert generated:
    6.1 rule_name should not be complete (ex: "Lookup: ")
    6.2 details!feed_name should be empty

Expected behavior
the feed name (the name of the database, without path and extension), should be indicated in both the rule_name and feed_name fileds

Screenshots/logs
image

Additional context
internal attribute feed_name is only set during text db processing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working easy
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant