# Deleting @Version and @Timestamp fields in Logstash 2.2.2

**URL:** <https://discuss.elastic.co/t/deleting-version-and-timestamp-fields-in-logstash-2-2-2/169475>\
**Category:** Logstash\
**Created:** [February 21, 2019, 6:26pm UTC](https://discuss.elastic.co/t/deleting-version-and-timestamp-fields-in-logstash-2-2-2/169475 "2019-02-21T18:26:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stecino](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@stecino](https://discuss.elastic.co/u/stecino)\
**Post date:** [February 21, 2019, 6:26pm UTC](https://discuss.elastic.co/t/deleting-version-and-timestamp-fields-in-logstash-2-2-2/169475/1 "2019-02-21T18:26:41Z")

</div>

Hello,

I am using Logstash pipeline to re-index ES 2.1.2 index from cluster A to cluster B. New index is created, but logstash adds it's own @version and @timestamp to records. Is there a way to delete these 2 fields via mutate right before the write. I don't really care when the record was processed by logstash, as this index is a datastore, and I can't have the json altered. The reason I am using logstash, is because snapshot fails on one shard, so I get partial snapshot.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![stecino](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@stecino](https://discuss.elastic.co/u/stecino)\
**Post date:** [February 21, 2019, 9:39pm UTC](https://discuss.elastic.co/t/deleting-version-and-timestamp-fields-in-logstash-2-2-2/169475/2 "2019-02-21T21:39:42Z")

</div>

I actually applied the mutate filter

filter {  
mutate {  
remove\_field =\> ["@version", "@timestamp"]  
}  
}

And it's working, this topic can be closed

---

<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 21, 2019, 9:39pm UTC](https://discuss.elastic.co/t/deleting-version-and-timestamp-fields-in-logstash-2-2-2/169475/3 "2019-03-21T21:39:42Z")

</div>

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