Data size/ element

(bert vervaele) #1

Hello everyone,

for my paper around elasticsearch I have to find out how much diskspace elasticsearch would need in a large company so save all log lines.
I counted the amount of loglines so now all i need is an average size/element.

I ran the elastic stack on a testserver and to find the average I used following command:

curl -XGET 'http://localhost:9200/_nodes/stats'

I got that I had 3502 elements and they took 1.968.548 bytes.
This means an average element takes 562bytes. I think thats wrong but I don't know what I did wrong.

Someone any idea of there average size or how I can find it?

Greatings Bert

(Luca Wintergerst) #2

Hi Bert,
this is one way to do it and 562 Bytes does sound pretty normal to me.
If you need that information per index then you can also do the same calculation using the output of _cat/indices

(system) #3

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