# Packetbeatのinterfaces-deviceの設定について

**URL:** <https://discuss.elastic.co/t/packetbeat-interfaces-device/54158>\
**Category:** 日本語による質問・議論はこちら\
**Created:** [June 28, 2016, 12:01pm UTC](https://discuss.elastic.co/t/packetbeat-interfaces-device/54158 "2016-06-28T12:01:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![johtani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johtani/32/44956_2.png) [@johtani](https://discuss.elastic.co/u/johtani)\
**Post date:** [June 29, 2016, 7:22am UTC](https://discuss.elastic.co/t/packetbeat-interfaces-device/54158/2 "2016-06-29T07:22:14Z")

</div>

残念ながら`any`はLinuxだけみたいです。

> [@Packetbeat: What are the databases/servers that we can listen to?](https://discuss.elastic.co/t/packetbeat-what-are-the-databases-servers-that-we-can-listen-to/44809/5):
>
> No just for linux. See [device](https://www.elastic.co/guide/en/beats/packetbeat/current/configuration-interfaces.html#_device) docs, it says. On Linux, you can specify any for the device... On Windows, use packetbeat.exe -devices to get a list of devices. Then use the interface index in your config. interfaces: device: 0

自動化するとしたら、`-devices`オプションを利用して取得するスクリプトを書いたりでしょうか？

> **[Configure traffic capturing options | Packetbeat Reference \[8.11\] | Elastic](https://www.elastic.co/guide/en/beats/packetbeat/current/configuration-interfaces.html#_device)**

---

_[View the full topic](https://discuss.elastic.co/t/packetbeat-interfaces-device/54158)._
