So as you can see I've different icIDs, but thats not the problem. My problem is, how I get this line with hello. In this line I've nothing else as the same timestamp as in line 2. That's why i can't only filter on icID.
This is only an example, there are a lot more lines than this hello.-line with different content, but with the same timestamp.
The best solution is, if I can type in the icID and get all results with the same timestamp.
Any suggestions? Thanks for your help!
Keep in mind, ES is a search engine, not a relational database engine so when you try to make ES works like a DB, in some cases, it's challenging. You need to look at the model that is indexed in ES and might need to adjust that model in order to achieve what you could do with a DB.
So, based on your post, the indexed document in ES seems to have two fields: icID and message. Based on your logs, each line is a document where message field holds the entire line, correct?
To get the hello line, you can simple search for hello
To get a specific line, you can search icID:[value]
If you break each line into multiple fields to hold the timestamp, the value "-2- or -3-", the value "[TEST] or [HELLOCLASS]", the value "ic=####", etc... it means you are adjusting the model, this allows you to perform other type of search and hopefully you'll be able to get what you want.
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.