Skip to content

Prodeko/parsedmarc

Repository files navigation

📧 parsedmarc

This repo is based of off https://github.com/dragoangel/parsedmarc-dockerized.

ℹ️ Info

This stack includes:

⚙️ How-to deploy from scratch

  1. Install Docker and Docker Compose.

  2. Allow IMAP access to [email protected] in gmail settings. Also allow less secure apps access from the accounts settings.

  3. Run ansible-playbook playbook.yml --extra-vars '@passwd.yml' --tags parsedmarc from Prodeko's infrastructure repo.

  4. Download & Import exports.ndjson.

Go to https://dmarc.prodeko.org/app/management/kibana/objects click on Import.

Import downloaded kibana_saved_objects.ndjson with override.

Elasticsearch issues

If you are not seeing recent updates in the Kibana dasboard try the following useful commands to debug cluster health and shard allocation issues:

# Run from kibana container
$ curl -XGET 'https://elasticsearch:9200/_cluster/health?pretty'

# Source: https://www.datadoghq.com/blog/elasticsearch-unassigned-shards/
# Understand shard allocation issues
$ curl -XGET 'https://elasticsearch:9200/_cluster/allocation/explain?pretty'

# Delete all shards
# WARNING: you should restart the container group in order to create the indices again
$ curl -XDELETE https://elasticsearch:9200/_all

# The following command was used to set the 'number_of_replicas' setting on all existing indices to 0
$ curl -XPUT "https://elasticsearch:9200/_template/default_template" -H 'Content-Type: application/json' -d'
{
  "index_patterns": ["*"],
  "settings": {
    "number_of_replicas": 0
  }
}
'

Dashboard Sample

ParceDMARC-Sample

About

Open source DMARC report analyzer and visualizer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published