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

hierarchical output in mongoDB bot #1324

Closed
kalyparker opened this issue Sep 12, 2018 · 3 comments
Closed

hierarchical output in mongoDB bot #1324

kalyparker opened this issue Sep 12, 2018 · 3 comments
Assignees
Labels
bug Indicates an unexpected problem or unintended behavior component: bots
Milestone

Comments

@kalyparker
Copy link
Contributor

Hi,
When option hierarchical_output is turn to false, the bot crashed.
Pymongo seems to not accept dot in key => like "feed.name"
Even it is possible to do that in mongo, it seems to be a really bad practice because the dot notation is used to access element in the document.
Maybe it's possible to add a parameter for define the separator which replace the dot.
To discuss :)

Tested on ubuntu 18.04, with pymongo and a mongoDB 3.6.3

@ghost
Copy link

ghost commented Sep 13, 2018

We replace the dot for elasticsearch for the same reason. You can have a look at how it is done in this bot.

@ghost ghost added this to the 1.1.1 milestone Sep 13, 2018
@ghost ghost added bug Indicates an unexpected problem or unintended behavior component: bots labels Sep 13, 2018
@kalyparker
Copy link
Contributor Author

Hi, I don't understand how to add a parameters to the bot.
Add this information to BOTS seems to not be enough. Any clue?

@ghost
Copy link

ghost commented Sep 25, 2018

To a configured instance of a bot? Then the runtime.conf in your installation.

BOTS contains templates for use by users manager or with the intelmq-manager.

Configured parameters are then available as self.parameters in the bots' code

@ghost ghost assigned kalyparker Sep 26, 2018
@ghost ghost closed this as completed in 8870fdd Sep 28, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior component: bots
Projects
None yet
Development

No branches or pull requests

1 participant