I don't think you can remove the @timestamp, it is a necessary field, and I'm not sure about the @version field either, but the beat fields and the offset can be removed using mutate in your filter pipeline on logstash.
Except @timestamp, you can remove any other field including @version.
I tried removing @timestamp, but I got errors. So, I ended up keeping it.
Please use the code suggested by @leandrojmp for removing fields.
@timestamp August 1st 2017, 12:56:54.893
t _id AV2clVn9SwgmMqjSZLw1
t _index filebeat-2017.08.01
_score -
t _type log
t host vNTDACLSWEBP005
t input_type log
t message 2017-08-01 12:56:54,133 : [INFO ] http-nio-8080-exec-7 [c.n.j.JdbcService:-1] Executing SP ACT_sms with Action [UPDATE]
t source /home/local/user/nsms/logs/Logs/nsms-server.log
t tags beats_input_codec_plain_applied
t type log
You can't remove _id, _index, _score, _type. They are required by elasticsearch. You can try reading elasticsearch documentation to know why.
You can remove input_type, type, tags using the syntax I mentioned in my previous reply.
Generally tags can be helpful. So, if you want to disable that particular tag (beats_input_codec_plain_applied). Add include_codec_tag => false to your beats plugin.
Example:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.