# Where does Kafka store data?

**URL:** <https://forum.confluent.io/t/where-does-kafka-store-data/5923>\
**Category:** Ops\
**Created:** [30 August 2022 13:34 UTC](https://forum.confluent.io/t/where-does-kafka-store-data/5923 "2022-08-30T13:34:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dlandry](https://avatars.discourse-cdn.com/v4/letter/d/b38774/32.png) [@dlandry](https://forum.confluent.io/u/dlandry)\
**Post date:** [30 August 2022 13:34 UTC](https://forum.confluent.io/t/where-does-kafka-store-data/5923/1 "2022-08-30T13:34:07Z")

</div>

How / Where does Apache Kafka store data?

---

<div class="post-metadata">

**Author:** ![vnadkarni](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/vnadkarni/32/1839_2.png) [@vnadkarni](https://forum.confluent.io/u/vnadkarni)\
**Post date:** [30 August 2022 14:47 UTC](https://forum.confluent.io/t/where-does-kafka-store-data/5923/2 "2022-08-30T14:47:37Z")

</div>

Apache Kafka brokers store data on local disk in an immutable\*\* append-only log. The directory that the brokers store data in can be configured to be a different one.

See the [Kafka Internals course](https://developer.confluent.io/learn-kafka/architecture/get-started/) by Jun Rao, and you can read about persistence in the brokers in the [docs](https://docs.confluent.io/platform/current/kafka/design.html?&_ga=2.94672415.2090694332.1661868846-741428499.1661868846#persistence) .

\*\* Exceptions exist like log compaction.
