# Logstash output as CEF data to other server

**URL:** <https://discuss.elastic.co/t/logstash-output-as-cef-data-to-other-server/174456>\
**Category:** Logstash\
**Created:** [March 29, 2019, 3:22am UTC](https://discuss.elastic.co/t/logstash-output-as-cef-data-to-other-server/174456 "2019-03-29T03:22:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blason](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/blason/32/42284_2.png) [@Blason](https://discuss.elastic.co/u/Blason)\
**Post date:** [March 29, 2019, 3:22am UTC](https://discuss.elastic.co/t/logstash-output-as-cef-data-to-other-server/174456/1 "2019-03-29T03:22:38Z")

</div>

Hi there,

I have elastic search stack where logstash is accepting data and ingesting in elastic search now I need to have another output configured and forward the data to a third part collector which is accepting in CEF format.

This is again not ArcSight but a third party SIEM solution. Can someone confirm if this possible?

TIA  
Blason R

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 29, 2019, 12:35pm UTC](https://discuss.elastic.co/t/logstash-output-as-cef-data-to-other-server/174456/2 "2019-03-29T12:35:44Z")

</div>

You can use a cef codec on an output, so yes, this should be possib.e

---

<div class="post-metadata">

**Author:** ![Blason](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/blason/32/42284_2.png) [@Blason](https://discuss.elastic.co/u/Blason)\
**Post date:** [March 29, 2019, 5:39pm UTC](https://discuss.elastic.co/t/logstash-output-as-cef-data-to-other-server/174456/3 "2019-03-29T17:39:33Z")

</div>

If possible can you give me an example?. Here is mine at this moment and I need to send to third party collector in CEF format

```auto
        gelf {
                host => "localhost"
                port => "12201"
                protocol => "UDP"
        }

}
# elasticsearch {
# index => "logstash-rpzlog-%{+YYYY.MM.dd}"
# hosts => ["http://localhost:9200"]
# }
# }
```

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 29, 2019, 6:08pm UTC](https://discuss.elastic.co/t/logstash-output-as-cef-data-to-other-server/174456/4 "2019-03-29T18:08:01Z")

</div>

There is an example writing to stdout [here](https://discuss.elastic.co/t/reverse-mapping-for-cef-input-codec-not-working/169184/2?u=badger).

---

<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:** [April 26, 2019, 6:08pm UTC](https://discuss.elastic.co/t/logstash-output-as-cef-data-to-other-server/174456/5 "2019-04-26T18:08:12Z")

</div>

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