# Sending metrics from a log to his respective logstash configuration

**URL:** <https://discuss.elastic.co/t/sending-metrics-from-a-log-to-his-respective-logstash-configuration/221477>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 28, 2020, 7:05pm UTC](https://discuss.elastic.co/t/sending-metrics-from-a-log-to-his-respective-logstash-configuration/221477 "2020-02-28T19:05:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Incauto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/incauto/32/60149_2.png) [@Incauto](https://discuss.elastic.co/u/Incauto)\
**Post date:** [February 28, 2020, 7:05pm UTC](https://discuss.elastic.co/t/sending-metrics-from-a-log-to-his-respective-logstash-configuration/221477/1 "2020-02-28T19:05:21Z")

</div>

Hi, I have a log with mixed metrics: cpu, filesystem, ping, uptime, etc...How can I direct each metric from Filebeat to his respective configuration in logstash?

 ![pregunta](https://us1.discourse-cdn.com/elastic/original/3X/b/3/b3f78a4a818ec243f6d881f566753d870b5e7977.png)

I also can use powershell to separate the metrics in his respective log file, same question as the above?

 ![pregunta2](https://us1.discourse-cdn.com/elastic/original/3X/3/9/393719a38b84dc98f74600ccb53c203e35500e7a.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![Incauto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/incauto/32/60149_2.png) [@Incauto](https://discuss.elastic.co/u/Incauto)\
**Post date:** [March 1, 2020, 11:34pm UTC](https://discuss.elastic.co/t/sending-metrics-from-a-log-to-his-respective-logstash-configuration/221477/2 "2020-03-01T23:34:45Z")

</div>

```auto
filebeat.inputs:

- type: log
  enabled: true
  paths:
    - E:\uptime\*
  fields:
    metric: "uptime"

- type: log
  enabled: true
  paths:
    - E:\cpu\*
  fields:
    metric: "cpu"
```

---

<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 29, 2020, 11:34pm UTC](https://discuss.elastic.co/t/sending-metrics-from-a-log-to-his-respective-logstash-configuration/221477/3 "2020-03-29T23:34:48Z")

</div>

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