pfelk / docker

Deploy pfelk with docker-compose
Apache License 2.0
57 stars 20 forks source link

Dashboard Visualization Erros #20

Closed sdresen closed 3 years ago

sdresen commented 3 years ago

Describe the bug Fresh install using Docker. Visualizations in dashboards showing errors and not presenting data.

To Reproduce Steps to reproduce the behavior:

  1. Fresh install of Ubuntu 20.04
  2. Fresh install of Docker
  3. Fresh install of MaxMind
  4. pfElk docker install script executed without errors
  5. pfElk configuration followed in order without errors Index Mgmt Index Templates Saved Objects Log Enrichment

Screenshots If applicable, add screenshots to help explain your problem.

Operating System (please complete the following information): Linux 5.4.0-58-generic x86_64 NAME="Ubuntu" VERSION="20.04.1 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.1 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal

Docker version 20.10.1, build 831ebea docker-compose version 1.25.0, build unknown

Elasticsearch, Logstash, Kibana (please complete the following information):

Additional context Screenshots DHCP_Dashboard Firewall_Dashboard Unbound_Dashboard

Last Note of Interest I am using pfSense and yet the Observer.Name field shows "OPNSense" in the Discover view where you see the specific data enrichment fields (Log Enrichment screenshot).

a3ilson commented 3 years ago

@sdresen - Thanks for providing a detailed request.

Let's break this down into two segments:

  1. observer.name
  2. Dashboards not populating (i.e. errors)

1. Observer.Name

2. Other errors

sdresen commented 3 years ago

Thank you for the quick response. I think deleting the indices did much of the trick to get the reporting working. I updated the observer.product and observer.serial_number fields. I did confirm that the pfelk-settings and pfelk-mappings-ecs are present in the Component Templates section (screen shot attached).

The Firewall and DHCP visualizations appear to be working correctly. I'm still seeing "obj is undefined" for the Unbound dashboard.

Lastly, can you provide a bit more direction on the original.log message you'd like. Not clear what I should send.

Component Templates
a3ilson commented 3 years ago

@sdresen - Whew...glad that resolved most of the issue. I suspect that you had logs being sent prior to configuring (adding) the various templates if so the remedy is to purge the current indices which appears to have resolved your issue.

As for the unbound portion, are you running unbound (I assume you are)? However, the initial screenshot did not depict any indices (i.e. no received logs).

sdresen commented 3 years ago

The unbound issue may be that there's no DNS traffic hitting the pfSense unbound server. Unbound is active and running but I use PiHole's internally. So, could be simply that there's no traffic resolution hitting it.

a3ilson commented 3 years ago

That would be it! So looks like your up/running (e.g. everything good?).

sdresen commented 3 years ago

Yes, all good, many thanks!

a3ilson commented 3 years ago

Resolved