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

replace fixed api-example files with generated ones #30

Open
bernhardreiter opened this issue Feb 18, 2021 · 0 comments
Open

replace fixed api-example files with generated ones #30

bernhardreiter opened this issue Feb 18, 2021 · 0 comments
Assignees

Comments

@bernhardreiter
Copy link
Member

Found that old debdf6c inserted explicit example files, though the dynamic example files from the modules are different.

Should be fixed to use the example files that are created by the modules during build or install time, e.g. running

python3 -m events_api.events_api --example-conf
{
  "libpg conninfo":
    "host=localhost dbname=intelmq-events user=eventapiuser password='USER\\'s DB PASSWORD'",
  "database table": "events",
  "logging_level": "INFO",
  "subqueries": {
     "all_ips": {
       "sql": "(\"source.ip\" = %s OR \"source.local_ip\" = %s OR \"destination.ip\" = %s OR \"destination.local_ip\" = %s)",
       "description": "Queries (source|destination).(local_)ip",
       "label": "Query all IPs",
       "ext_type": "integer"
     }
   }
}
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

No branches or pull requests

2 participants