# Mysterious 'offset' and 'count' fields

**URL:** <https://discuss.elastic.co/t/mysterious-offset-and-count-fields/48981>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 2, 2016, 4:34pm UTC](https://discuss.elastic.co/t/mysterious-offset-and-count-fields/48981 "2016-05-02T16:34:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CraigFoote](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/craigfoote/32/4571_2.png) [@CraigFoote](https://discuss.elastic.co/u/CraigFoote)\
**Post date:** [May 2, 2016, 4:34pm UTC](https://discuss.elastic.co/t/mysterious-offset-and-count-fields/48981/1 "2016-05-02T16:34:58Z")

</div>

I'm getting these two fields in my data but I don't know where they're coming from. Are they put there by filebeat? How can I get rid of them?

---

<div class="post-metadata">

**Author:** ![whyapenny](https://avatars.discourse-cdn.com/v4/letter/w/90db22/32.png) [@whyapenny](https://discuss.elastic.co/u/whyapenny)\
**Post date:** [May 2, 2016, 4:55pm UTC](https://discuss.elastic.co/t/mysterious-offset-and-count-fields/48981/2 "2016-05-02T16:55:43Z")

</div>

are you sending to logstash or straight to elasticsearch? if logstash, just use mutate filter to drop the fields if not needed.

---

<div class="post-metadata">

**Author:** ![CraigFoote](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/craigfoote/32/4571_2.png) [@CraigFoote](https://discuss.elastic.co/u/CraigFoote)\
**Post date:** [May 2, 2016, 5:13pm UTC](https://discuss.elastic.co/t/mysterious-offset-and-count-fields/48981/3 "2016-05-02T17:13:10Z")

</div>

Ok, I can do that. Do you know where they're coming from though?

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [May 2, 2016, 5:18pm UTC](https://discuss.elastic.co/t/mysterious-offset-and-count-fields/48981/4 "2016-05-02T17:18:39Z")

</div>

I think the count field has been removed in more recent version (at least v5 alpha1 I think).

The offset field is the byte offset into the file the line has been read from.

---

<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:** [July 5, 2017, 9:52pm UTC](https://discuss.elastic.co/t/mysterious-offset-and-count-fields/48981/5 "2017-07-05T21:52:35Z")

</div>


