Hi,
Does ES support store the logs one time if they have same content? And just
record the timestamp for every log?
In this way, it could improve the disk usage.
For instance, 2 lines of log are the same, ES just store the content of the
line once, and record the timestamp for both.
When searching, ES returns the content twice with different timestamp.
Hi,
Does ES support store the logs one time if they have same content? And just record the timestamp for every log?
In this way, it could improve the disk usage.
For instance, 2 lines of log are the same, ES just store the content of the line once, and record the timestamp for both.
When searching, ES returns the content twice with different timestamp.
Thnak you for your kindly answer.
In this way, the date fields should be a list? Every time update the same
document should add the doc date to the date list in index doc? How to do
that ?
And when searching index by date range, could ES find out the matched date
in the date list?
Thnak you for your kindly answer.
In this way, the date fields should be a list? Every time update the same document should add the doc date to the date list in index doc? How to do that ?
And when searching index by date range, could ES find out the matched date in the date list?
Thanks,
My goal is to use ES general function and just keep one copy if the same
when storing the logs content.
And your suggestion is that we can't match date in array?
I did not say that.
You can store an array of dates and search in it.
The best thing to do is to test it. It's really easy to start with elasticsearch and with some curl commands you can create a document with an array of dates and search for it using RangeFilter.
HTH
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Thanks,
My goal is to use ES general function and just keep one copy if the same when storing the logs content.
And your suggestion is that we can't match date in array?
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.