# How to read base64 encoded logs from kafka through logstash pipeline

**URL:** https://discuss.elastic.co/t/how-to-read-base64-encoded-logs-from-kafka-through-logstash-pipeline/349688
**Category:** Logstash
**Created:** [December 20, 2023, 3:49am UTC](https://discuss.elastic.co/t/how-to-read-base64-encoded-logs-from-kafka-through-logstash-pipeline/349688 "2023-12-20T03:49:10Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [December 20, 2023, 4:16am UTC](https://discuss.elastic.co/t/how-to-read-base64-encoded-logs-from-kafka-through-logstash-pipeline/349688/2 "2023-12-20T04:16:35Z")

</div>

> [@upreddy](#):
>
> Now i want to decode that base64 encoded logs through logstash pipeline.

You will probably need a ruby filter. See [these](https://discuss.elastic.co/t/base64-decode-issue/319874/2) [two](https://discuss.elastic.co/t/can-logstash-base64-decode-then-parse-json-from-a-cloudfront-log/280367/2) threads.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-read-base64-encoded-logs-from-kafka-through-logstash-pipeline/349688)._
