# Unable to fetch mappings - BRO IDS + ELK Stack

**URL:** <https://discuss.elastic.co/t/unable-to-fetch-mappings-bro-ids-elk-stack/83128>\
**Category:** Logstash\
**Created:** [April 20, 2017, 10:50pm UTC](https://discuss.elastic.co/t/unable-to-fetch-mappings-bro-ids-elk-stack/83128 "2017-04-20T22:50:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam2](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@adam2](https://discuss.elastic.co/u/adam2)\
**Post date:** [April 20, 2017, 10:50pm UTC](https://discuss.elastic.co/t/unable-to-fetch-mappings-bro-ids-elk-stack/83128/1 "2017-04-20T22:50:46Z")

</div>

## Hello Everyone, i'll start by saying...newbe here and i'm lost. I'm trying to setup BRO and ELK stack. I'm following [https://github.com/BrashEndeavours/bro-elk-IDS](https://github.com/BrashEndeavours/bro-elk-IDS). I have my BRO ids and ELK stack on the same server for testing. I'm running Ubuntu Desktop 16.04.2 I'm running into an issue where when I login to Kibana its saying it is unable to fetch mappings. I've confirmed that BRO is generating logs and running. I'm thinking its an issue with my logstash\_bro.conf but honestly.... i'm not sure. Here is my current configuration:

## Logstash\_bro.conf

```auto
16:42:53 ✔ root:/nsm/logstash/config/pipeline$ cat logstash_bro.conf 
input {
  stdin {
  }

# Production Logs#############################
  bro {
    type => "app_stats"
    path => "/nsm/bro/logs/current/app_stats.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "conn"
    path => "/nsm/bro/logs/current/conn.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "dns_entropy"
    path => "/nsm/bro/logs/current/dns_entropy.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "dhcp"
    path => "/nsm/bro/logs/current/dhcp.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "dns"
    path => "/nsm/bro/logs/current/dns.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "dpd"
    path => "/nsm/bro/logs/current/dpd.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "files"
    path => "/nsm/bro/logs/current/files.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "http"
    path => "/nsm/bro/logs/current/http.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "http_entropy"
    path => "/nsm/bro/logs/current/http_entropy.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "kerberos"
    path => "/nsm/bro/logs/current/kerberos.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "known_certs"
    path => "/nsm/bro/logs/current/known_certs.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "known_hosts"
    path => "/nsm/bro/logs/current/known_hosts.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "known_services"
    path => "/nsm/bro/logs/current/known_services.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "intel"
    path => "/nsm/bro/logs/current/intel.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "notice"
    path => "/nsm/bro/logs/current/notice.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "pe"
    path => "/nsm/bro/logs/current/pe.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "rdp"
    path => "/nsm/bro/logs/current/rdp.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "sip"
    path => "/nsm/bro/logs/current/sip.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "smtp"
    path => "/nsm/bro/logs/current/smtp.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "socks"
    path => "/nsm/bro/logs/current/socks.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "software"
    path => "/nsm/bro/logs/current/software.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "ssh"
    path => "/nsm/bro/logs/current/ssh.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "ssl"
    path => "/nsm/bro/logs/current/ssl.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "syslog"
    path => "/nsm/bro/logs/current/syslog.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "traceroute"
    path => "/nsm/bro/logs/current/traceroute.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "weird"
    path => "/nsm/bro/logs/current/weird.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
  bro {
    type => "x509"
    path => "/nsm/bro/logs/current/x509.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
}

# Benchmark!
filter {
    metrics {
        meter => "benchmark"
        add_tag => "metric"
    }
}

output {
    if "metric" in [tags] {
        stdout {
            codec => line {
                format => "%{[benchmark][rate_1m]} requests/sec, ( %{[benchmark][count]} total)"
            }
        }
    }

# stdout { codec => rubydebug }
  elasticsearch {
    hosts => ["127.0.0.1:9200"]
  }
}

```

Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![adam2](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@adam2](https://discuss.elastic.co/u/adam2)\
**Post date:** [April 20, 2017, 10:51pm UTC](https://discuss.elastic.co/t/unable-to-fetch-mappings-bro-ids-elk-stack/83128/2 "2017-04-20T22:51:27Z")

</div>

## Also here is my netstat and bro log directory.

## Netstat

```auto
tcp 0 0 0.0.0.0:47760 0.0.0.0:* LISTEN 2041/bro        
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN 938/dnsmasq     
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1390/sshd       
tcp 0 0 0.0.0.0:5601 0.0.0.0:* LISTEN 776/node        
tcp6 0 0 127.0.0.1:9200 :::* LISTEN 1388/java       
tcp6 0 0 :::47760 :::* LISTEN 2041/bro        
tcp6 0 0 127.0.0.1:9300 :::* LISTEN 1388/java       
tcp6 0 0 :::22 :::* LISTEN 1390/sshd       

```

## -- BRO logs Directory

```auto
16:46:06 ✔ root:/nsm/bro/logs/current$ ls -la
total 308
drwxr-xr-x 4 bro nsm 4096 Apr 20 16:32 .
drwxr-xr-x 5 bro nsm 4096 Apr 20 16:19 ..
-rw-r--r-- 1 bro nsm 259 Apr 20 16:32 capture_loss.log
-rw-r--r-- 1 bro nsm 122 Apr 20 16:17 .cmdline
-rw-r--r-- 1 bro nsm 591 Apr 20 16:17 communication.log
-rw-r--r-- 1 bro nsm 22741 Apr 20 16:46 conn.log
-rw-r--r-- 1 bro nsm 749 Apr 20 16:46 dhcp.log
-rw-r--r-- 1 bro nsm 82177 Apr 20 16:46 dns.log
-rw-r--r-- 1 bro nsm 303 Apr 20 16:17 .env_vars
drwxr-xr-x 2 bro nsm 12288 Apr 20 16:42 extract_files
-rw-r--r-- 1 bro nsm 31652 Apr 20 16:42 files.log
-rw-r--r-- 1 bro nsm 10749 Apr 20 16:42 http.log
-rw-r--r-- 1 bro nsm 202 Apr 20 16:17 known_hosts.log
-rw-r--r-- 1 bro nsm 284 Apr 20 16:31 known_services.log
-rw-r--r-- 1 bro nsm 23534 Apr 20 16:17 loaded_scripts.log
-rw-r--r-- 1 bro nsm 226 Apr 20 16:17 packet_filter.log
-rw-r--r-- 1 bro nsm 5 Apr 20 16:17 .pid
-rw-r--r-- 1 bro nsm 619 Apr 20 16:18 software.log
-rw-r--r-- 1 bro nsm 848 Apr 20 16:18 ssh.log
-rw-r--r-- 1 bro nsm 11579 Apr 20 16:25 ssl.log
-rw-r--r-- 1 bro nsm 58 Apr 20 16:17 .startup
drwx------ 3 bro nsm 4096 Apr 20 16:17 .state
-rw-r--r-- 1 bro nsm 1182 Apr 20 16:42 stats.log
-rwx------ 1 bro nsm 18 Apr 20 16:17 .status
-rw-r--r-- 1 bro nsm 20 Apr 20 16:17 stderr.log
-rw-r--r-- 1 bro nsm 188 Apr 20 16:17 stdout.log
-rw-r--r-- 1 bro nsm 1641 Apr 20 16:40 weird.log
-rw-r--r-- 1 bro nsm 14720 Apr 20 16:25 x509.log
16:46:07 ✔ root:/nsm/bro/logs/current$ 

```

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 24, 2017, 5:22am UTC](https://discuss.elastic.co/t/unable-to-fetch-mappings-bro-ids-elk-stack/83128/3 "2017-04-24T05:22:43Z")

</div>

> I'm running into an issue where when I login to Kibana its saying it is unable to fetch mappings.

Have you verified that Elasticsearch indexes have been created? Use e.g. ES's [/\_cat/indices](https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html) API.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 22, 2017, 5:29am UTC](https://discuss.elastic.co/t/unable-to-fetch-mappings-bro-ids-elk-stack/83128/4 "2017-05-22T05:29:17Z")

</div>

Closed on May 22, 2017, 5:29am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
