Ask Your Question

tshark compatibility with elasticsearch 7.x

asked 2020-03-31 20:01:22 +0000

gokcesurenkok gravatar image

updated 2020-03-31 20:03:46 +0000

Hi everyone,

I want to visualize the packets on kibana, to do that I followed this old post

but the mapping was old there, so I used this command line to get a valid mapping

tshark -G elastic-mapping --elastic-mapping-filter ip,udp,dns

however, this gave me a mapping duplicated fields, I removed the duplicated fields, and then I applied the template to the elasticsearch 7.6.2

But this time it gave me an error like "Root mapping definition has unsupported parameters", so I assume there are some changes in index structure with elasticsearch 7.x.

Can you please have a look at it?


edit retag flag offensive close merge delete


1 Answer

Sort by ยป oldest newest most voted

answered 2020-06-01 11:36:52 +0000

Here is project using the tshark + ELK. The project will build VM for you.

You are right, the mappings json need to be first de-duplicated, here is the deduplicated output. Inside this project is also script which can help to pre-process the mapping json.

According to my tests, Elasticsearch and Kibana does not bear well to include all mappings fields for every wireshark supported field. So just select the fields which you would require.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-03-31 20:01:22 +0000

Seen: 1,228 times

Last updated: Jun 01 '20