# Splitting metricbeat events into separate index

**URL:** <https://discuss.elastic.co/t/splitting-metricbeat-events-into-separate-index/141720>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [July 26, 2018, 8:52am UTC](https://discuss.elastic.co/t/splitting-metricbeat-events-into-separate-index/141720 "2018-07-26T08:52:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hilt86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hilt86/32/20308_2.png) [@hilt86](https://discuss.elastic.co/u/hilt86)\
**Post date:** [July 26, 2018, 8:52am UTC](https://discuss.elastic.co/t/splitting-metricbeat-events-into-separate-index/141720/1 "2018-07-26T08:52:14Z")

</div>

I am trying to read events from a s3 bucket and index them into elasticsearch. Everything works fine if I have a single input and output and I used to be able to use a conditional like

```
  if [metricset] {
elasticsearch {
  hosts => ["elasticsearch:9200"]
  index => "metricbeat-%{+YYYY.MM.dd}"
 }
 }

```

however now that type field is gone I am having trouble isolating the metricbeat events to their own index...

H

---

<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:** [July 26, 2018, 8:59am UTC](https://discuss.elastic.co/t/splitting-metricbeat-events-into-separate-index/141720/2 "2018-07-26T08:59:03Z")

</div>

> [@hilt86](#):
>
> however now that type field is gone I am having trouble isolating the metricbeat events to their own index...

That's the type field in Elasticsearch, you can still use it in Logstash to build your conditionals./

---

<div class="post-metadata">

**Author:** ![hilt86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hilt86/32/20308_2.png) [@hilt86](https://discuss.elastic.co/u/hilt86)\
**Post date:** [July 26, 2018, 9:01am UTC](https://discuss.elastic.co/t/splitting-metricbeat-events-into-separate-index/141720/3 "2018-07-26T09:01:24Z")

</div>

what type would that be? Since the events don't get to ES it isn't easy to view the events...

I have tried :

if [metricset.name] == "network"  
if [type] == "metricset"  
if [metricset]

all to no avail...

---

<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:** [August 23, 2018, 9:01am UTC](https://discuss.elastic.co/t/splitting-metricbeat-events-into-separate-index/141720/4 "2018-08-23T09:01:29Z")

</div>

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