Skip to content

Instantly share code, notes, and snippets.

View westerterp's full-sized avatar

Mark Westerterp westerterp

View GitHub Profile
@westerterp
westerterp / cisco-fw-mappings.sh
Created June 11, 2018 15:46
Cisco Firewall Elasticsearch Field Template
#!/bin/sh
#
# Modified version of https://jackhanington.com/blog/2015/06/16/send-cisco-asa-syslogs-to-elasticsearch-using-logstash/
# Adapted to work with ElasticSearch 6
#
curl --header "content-type: application/JSON" -XPUT http://127.0.0.1:9200/_template/logstash_per_index -d '
{
"template" : "logstash*",