Another Unifi/iptables syslog parsing question. #3641
Replies: 3 comments 7 replies
-
Let me test this and get back with you. Thanks, |
Beta Was this translation helpful? Give feedback.
-
It's been a couple of weeks now - just wondering if there are any updates. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I was able to get the dashboards imported to SO correctly, but I am having trouble getting SO to ingest the logs and create a index. I think this configuration is %95 of the way there, maybe someone can help me polish this off.. Here is what I tried.. I translated the same documentation SO provided from their netflow video (https://www.youtube.com/watch?v=ew5gtVjAs7g) to the iptables module of filebeat. Here is that generic configuration.. Update docker and the filebeat modulevi /opt/so/saltstack/local/pillar/minions/onion_standalone.sls
cp /opt/so/saltstack/default/salt/filebeat/init.sls /opt/so/saltstack/local/salt/filebeat/ chown socore:socore /opt/so/saltstack/local/salt/filebeat/init.sls vi /opt/so/saltstack/local/salt/filebeat/init.sls
salt-call state.apply filebeat Update Firewallso-firewall addhostgroup iptables vi /opt/so/saltstack/local/pillar/minions/onion_standalone.sls
salt-call state.apply firewall Generate logstash pipelines to ingest iptables.This is where I am stuck at, it Errors "Exiting: module iptables is configured but has no enabled filesets"docker exec -i so-filebeat filebeat setup modules -pipelines -modules iptables -c /usr/share/filebeat/module-setup.yml so-filebeat-restart To import the dashboards, I exported the iptables objects from a elasticsearch/kibana setup, and in the json file changes filebeat-* to so-*.Attached below, save it as .ndjson and import it to SO Kibana saved objects. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Has anyone been successful in parsing Unifi iptables syslog yet and if so can you share your configs?
With the upgrade to the Features version, I was hoping to use Elastic's built-in ingest node for iptables/unifi: https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-iptables.html
However, I'm having problems executing the filebeat commands that would set this up:
Did I do something wrong with my filebeat commands to have this be automatically set up?
I have access to a working Elastic instance (version 7.8) with iptables enabled so I also tried copying the ingest parser from the Elasticsearch Ingest Node Pipelines configs that I found in the web application and I've been trying to integrate those with SO's syslog parser without luck (I used these super helpful guides #3175 and #3547 - many thanks to the author!!). I've fixed all of the errors that came up, but after restarting all of the elastic components I seem to have lost ALL syslog parsing so I've clearly messed up somewhere. :(
I'm hoping that someone else has already succeeded and can help out - or can point me in the right direction to get this working. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions