# Searching Across Multiple Indices

**URL:** <https://discuss.elastic.co/t/searching-across-multiple-indices/121424>\
**Category:** Kibana\
**Created:** [February 26, 2018, 4:11am UTC](https://discuss.elastic.co/t/searching-across-multiple-indices/121424 "2018-02-26T04:11:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![thelonestargeek](https://avatars.discourse-cdn.com/v4/letter/t/77aa72/32.png) [@thelonestargeek](https://discuss.elastic.co/u/thelonestargeek)\
**Post date:** [February 26, 2018, 4:11am UTC](https://discuss.elastic.co/t/searching-across-multiple-indices/121424/1 "2018-02-26T04:11:06Z")

</div>

I have two indices.

1. contains device data including IP, date last seen, vendor, model
2. contains netflow data IPs, bytes

Is it possible to create a consolidated index that appends the device data to the netflow data? If so, how would I do that?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 27, 2018, 3:50am UTC](https://discuss.elastic.co/t/searching-across-multiple-indices/121424/2 "2018-02-27T03:50:41Z")

</div>

If they share a similar index pattern naming convention, then yes.

Otherwise you can try setting up a pattern of `*`.

---

<div class="post-metadata">

**Author:** ![thelonestargeek](https://avatars.discourse-cdn.com/v4/letter/t/77aa72/32.png) [@thelonestargeek](https://discuss.elastic.co/u/thelonestargeek)\
**Post date:** [February 27, 2018, 4:33am UTC](https://discuss.elastic.co/t/searching-across-multiple-indices/121424/3 "2018-02-27T04:33:48Z")

</div>

Thanks Mark, if I wanted to add the field data to the netflow data; what's the best way to set that up?

For example:

1. device data - 10.10.1.1, dell, poweredge
2. netflow data - 10.10.1.1, 350

So since the IP addresses match it's the same device and I want to create one record.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 27, 2018, 5:17pm UTC](https://discuss.elastic.co/t/searching-across-multiple-indices/121424/4 "2018-02-27T17:17:30Z")

</div>

Where is the device data kept?

---

<div class="post-metadata">

**Author:** ![thelonestargeek](https://avatars.discourse-cdn.com/v4/letter/t/77aa72/32.png) [@thelonestargeek](https://discuss.elastic.co/u/thelonestargeek)\
**Post date:** [February 27, 2018, 10:18pm UTC](https://discuss.elastic.co/t/searching-across-multiple-indices/121424/5 "2018-02-27T22:18:48Z")

</div>

The device data is a different \_type in the same index

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 28, 2018, 3:39am UTC](https://discuss.elastic.co/t/searching-across-multiple-indices/121424/6 "2018-02-28T03:39:43Z")

</div>

You probably want to change that, `_type` will no longer exist in 7.0.

With this though, you really want to add that data to the event during ingestion.

---

<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:** [March 28, 2018, 3:40am UTC](https://discuss.elastic.co/t/searching-across-multiple-indices/121424/7 "2018-03-28T03:40:05Z")

</div>

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