# How to setup kibana dashboard for windows

**URL:** <https://discuss.elastic.co/t/how-to-setup-kibana-dashboard-for-windows/135288>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [June 11, 2018, 5:00am UTC](https://discuss.elastic.co/t/how-to-setup-kibana-dashboard-for-windows/135288 "2018-06-11T05:00:54Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saketh\_Chandra\_Kolis](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Saketh\_Chandra\_Kolis](https://discuss.elastic.co/u/Saketh_Chandra_Kolis)\
**Post date:** [June 11, 2018, 5:00am UTC](https://discuss.elastic.co/t/how-to-setup-kibana-dashboard-for-windows/135288/1 "2018-06-11T05:00:54Z")

</div>

```
PS C:\Program Files\Packetbeat> ./scripts/import_dashboards -es http://localhost:9200/
Failed to set the mapping: 400 Bad Request
Created temporary directory C:\Users\Mahe\AppData\Local\Temp\tmp300680327
Downloading https://artifacts.elastic.co/downloads/beats/beats-dashboards/beats-dashboards-5.4.1.zip
Unzip archive C:\Users\Mahe\AppData\Local\Temp\tmp300680327
Importing Kibana from C:\Users\Mahe\AppData\Local\Temp\tmp300680327\beats-dashboards-5.4.1\filebeat
Importing Kibana from C:\Users\Mahe\AppData\Local\Temp\tmp300680327\beats-dashboards-5.4.1\heartbeat
Importing Kibana from C:\Users\Mahe\AppData\Local\Temp\tmp300680327\beats-dashboards-5.4.1\metricbeat
Importing Kibana from C:\Users\Mahe\AppData\Local\Temp\tmp300680327\beats-dashboards-5.4.1\packetbeat
Import directory C:\Users\Mahe\AppData\Local\Temp\tmp300680327\beats-dashboards-5.4.1\packetbeat/index-pattern
Import index to /.kibana/index-pattern/packetbeat-* from C:\Users\Mahe\AppData\Local\Temp\tmp300680327\beats-dashboards-5.4.1\packetbeat\index-pattern\packetbeat.json

Error importing URL/file: Failed to import index-pattern: Failed to load directory C:\Users\Mahe\AppData\Local\Temp\tmp300680327\beats-dashboards-5.4.1\packetbeat/index-pattern:
  error loading C:\Users\Mahe\AppData\Local\Temp\tmp300680327\beats-dashboards-5.4.1\packetbeat\index-pattern\packetbeat.json: couldn't load json. Error: 400 Bad Request
Exiting
```

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [June 11, 2018, 5:40am UTC](https://discuss.elastic.co/t/how-to-setup-kibana-dashboard-for-windows/135288/2 "2018-06-11T05:40:43Z")

</div>

Which version of Elasticsearch and Beats are you using?

---

<div class="post-metadata">

**Author:** ![Saketh\_Chandra\_Kolis](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Saketh\_Chandra\_Kolis](https://discuss.elastic.co/u/Saketh_Chandra_Kolis)\
**Post date:** [June 11, 2018, 5:41am UTC](https://discuss.elastic.co/t/how-to-setup-kibana-dashboard-for-windows/135288/3 "2018-06-11T05:41:32Z")

</div>

@adrisr 5.4.1

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [June 11, 2018, 5:44am UTC](https://discuss.elastic.co/t/how-to-setup-kibana-dashboard-for-windows/135288/4 "2018-06-11T05:44:12Z")

</div>

Try removing the slash at the end of the URL to Elasticsearch:

BAD: `./scripts/import_dashboards -es http://localhost:9200/`  
GOOD: `./scripts/import_dashboards -es http://localhost:9200`

---

<div class="post-metadata">

**Author:** ![Saketh\_Chandra\_Kolis](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Saketh\_Chandra\_Kolis](https://discuss.elastic.co/u/Saketh_Chandra_Kolis)\
**Post date:** [June 12, 2018, 5:19am UTC](https://discuss.elastic.co/t/how-to-setup-kibana-dashboard-for-windows/135288/5 "2018-06-12T05:19:37Z")

</div>

@adrisr  
I tried that but still get this error.

```
PS C:\Program Files\Packetbeat> ./scripts/import_dashboards -es http://localhost:9200
Failed to set the mapping: Put http://localhost:9200/.kibana/_mapping/search: dial tcp 127.0.0.1:9200: connectex: No connection could be made because the target machine actively refused it.
Created temporary directory C:\Users\Mahe\AppData\Local\Temp\tmp674146087
Downloading https://artifacts.elastic.co/downloads/beats/beats-dashboards/beats-dashboards-5.4.1.zip
Unzip archive C:\Users\Mahe\AppData\Local\Temp\tmp674146087
Importing Kibana from C:\Users\Mahe\AppData\Local\Temp\tmp674146087\beats-dashboards-5.4.1\filebeat
Importing Kibana from C:\Users\Mahe\AppData\Local\Temp\tmp674146087\beats-dashboards-5.4.1\heartbeat
Importing Kibana from C:\Users\Mahe\AppData\Local\Temp\tmp674146087\beats-dashboards-5.4.1\metricbeat
Importing Kibana from C:\Users\Mahe\AppData\Local\Temp\tmp674146087\beats-dashboards-5.4.1\packetbeat
Import directory C:\Users\Mahe\AppData\Local\Temp\tmp674146087\beats-dashboards-5.4.1\packetbeat/index-pattern
Import index to /.kibana/index-pattern/packetbeat-* from C:\Users\Mahe\AppData\Local\Temp\tmp674146087\beats-dashboards-5.4.1\packetbeat\index-pattern\packetbeat.json

Error importing URL/file: Failed to import index-pattern: Failed to load directory C:\Users\Mahe\AppData\Local\Temp\tmp674146087\beats-dashboards-5.4.1\packetbeat/index-pattern:
  error loading C:\Users\Mahe\AppData\Local\Temp\tmp674146087\beats-dashboards-5.4.1\packetbeat\index-pattern\packetbeat.json: couldn't load json. Error: Put http://localhost:9200/.kibana/index-pattern/packetbeat-*: dial tcp 127.0.0.1:9200: connectex: No connection could be made because the target machine actively refused it.
Exiting
```

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [June 12, 2018, 7:18am UTC](https://discuss.elastic.co/t/how-to-setup-kibana-dashboard-for-windows/135288/6 "2018-06-12T07:18:18Z")

</div>

Now it's a different error.

`Error: Put http://localhost:9200/.kibana/index-pattern/packetbeat-*: dial tcp 127.0.0.1:9200: connectex: No connection could be made because the target machine actively refused it.`

It seems that there is no elasticsearch running at `localhost:9200`

---

<div class="post-metadata">

**Author:** ![Saketh\_Chandra\_Kolis](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Saketh\_Chandra\_Kolis](https://discuss.elastic.co/u/Saketh_Chandra_Kolis)\
**Post date:** [June 14, 2018, 4:57am UTC](https://discuss.elastic.co/t/how-to-setup-kibana-dashboard-for-windows/135288/7 "2018-06-14T04:57:29Z")

</div>

@adrisr i there was an issue with that's resolved and the dashboard has been set,but i get this error.  
Also in the command prompt where i am starting the packetbeat it says no non zero metrics in last 30 seconds

i can't see any of the traffic that i am generating

 ![Screenshot%20(95)](https://us1.discourse-cdn.com/elastic/original/3X/1/2/126beb5bbf4d86bebb3603e307b6141949309164.png)

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [June 15, 2018, 4:40am UTC](https://discuss.elastic.co/t/how-to-setup-kibana-dashboard-for-windows/135288/8 "2018-06-15T04:40:06Z")

</div>

Can you please go to Dev Tools on the left pane and list the existing indices using following query:

```auto
GET /_cat/indices?v

```

---

<div class="post-metadata">

**Author:** ![Saketh\_Chandra\_Kolis](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Saketh\_Chandra\_Kolis](https://discuss.elastic.co/u/Saketh_Chandra_Kolis)\
**Post date:** [June 15, 2018, 5:57am UTC](https://discuss.elastic.co/t/how-to-setup-kibana-dashboard-for-windows/135288/9 "2018-06-15T05:57:48Z")

</div>

@adrisr

 ![Screenshot%20(98)](https://us1.discourse-cdn.com/elastic/original/3X/c/e/ce1419d4752ef0b10ef84a7f545fdfb35ca2d371.png)

---

<div class="post-metadata">

**Author:** ![Saketh\_Chandra\_Kolis](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Saketh\_Chandra\_Kolis](https://discuss.elastic.co/u/Saketh_Chandra_Kolis)\
**Post date:** [June 15, 2018, 6:02am UTC](https://discuss.elastic.co/t/how-to-setup-kibana-dashboard-for-windows/135288/10 "2018-06-15T06:02:16Z")

</div>

And i also keep getting this and thought of bringing it to your notice

 ![Screenshot%20(99)](https://us1.discourse-cdn.com/elastic/original/3X/e/7/e773a7c2a7d31bed1ff64677e0e15a2e60c1d877.png)

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [June 15, 2018, 8:42am UTC](https://discuss.elastic.co/t/how-to-setup-kibana-dashboard-for-windows/135288/11 "2018-06-15T08:42:02Z")

</div>

There are no packetbeat indices. This and the lack of metrics means that packetbeat is not sending any events to Elasticsearch.

I would say that it is not capturing any traffic. From which interface are you capturing traffic? It is the value of the `packetbeat.interfaces.device` field in `packetbeat.yml`.

To configure the proper interface on Windows, you have to run:  
`packetbeat -devices`

It will print a list of devices similar this this one:

```auto
0: \Device\NPF_{113535AD-934A-452E-8D5F-3004797DE286} (Intel(R) PRO/1000 MT Desktop Adapter)
1: \Device\NPF_NdisWanBh (NdisWan Adapter) (Not assigned ip address)
2: \Device\NPF_{DD2F4800-0DEB-4A98-A302-0777CB955DC1} (AsyncMac Adapter) (Not assigned ip address)
3: \Device\NPF_{8E8A32C0-6E4D-46ED-9723-9D656A26D1F5} (EMULEX) (12.54.18.145)
4: \Device\NPF_NdisWanIpv6 (NdisWan Adapter) (Not assigned ip address)
5: \Device\NPF_{83485D06-422D-4558-AC88-5D0EB800BB1C} (MS LoopBack Driver) (fe80::ezeb:459b:61a4:c175 0.0.0.0)

```

Pick the interface you're interested in and configure it by using its index:

```auto
packetbeat.interfaces.device: 4

```

If you want to capture from the loopback interface read this:  
[https://www.elastic.co/guide/en/beats/packetbeat/current/faq.html#packetbeat-loopback-interface](https://www.elastic.co/guide/en/beats/packetbeat/current/faq.html#packetbeat-loopback-interface)

---

<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:** [July 13, 2018, 8:42am UTC](https://discuss.elastic.co/t/how-to-setup-kibana-dashboard-for-windows/135288/12 "2018-07-13T08:42:02Z")

</div>

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