I want to thank you all for your help.
A colleague was just checking the kibana dashboards and found out it was working and came to tell me.
Apparently all I needed to do was restart the service after fixing the config.
I was only re-running "filebeat setup -e" before.