I've edited the /etc/filebeat/modules.d/threatintel.yml
and updated the entry for misp to enable it and also to add the API key from my local misp server.
My config looks like this:
misp:
enabled: true
var.input: httpjson
var.url: https://10.1.2.50/events/restSearch
var.api_token: ml9wio5eGLGwt32Gl1QNXr0HwLZAcEg1QpAVynBB
var.ssl.verification_mode: none
var.first_interval: 30h
var.interval: 5m
The errors I'm seeing in the filebeat journal are:
ERROR [input.httpjson-cursor] v2/input.go:115 Error while processing http request: failed to execute http client.Do: failed to execute http client.Do: Post "https://10.1.2.50/events/restSearch": POST "https://10.1.2.50/events/restSearch": POST https://10.1.2.50/events/restSearch giving up after 6 attempts {"id": "7C8F59266C173D38", "input_source": "https://10.1.2.50/events/restSearch", "input_url": "https://10.1.2.50/events/restSearch"}
Which doesn't make much sense to me.
Is there any config change required on the misp server to allow data to be grabbed?
I thought presenting a valid API key should be sufficient.