Logstash and normalisation

Status
Not open for further replies.

ShuggyCoUk

Ars Legatus Legionis
10,388
Subscriptor++
Whenever I try to search for this I am swamped by results that indicate they are talking about normalising in the sense of renaming things from disparate sources that mean the same thing so they can be correlated. That's not what I want to do, I wish to avoid having to repeatedly send the same metadata for every record from a source.

I can implement this myself by doing a simple persistent message queue which has a header message with all common fields, with a GUID in it, and point to that guid in all further messages. Then ingest from that queue, adding those header ones to all the other messages. This just seems *wasteful* at the ingested end. If that's how it has to be so be it. AFAICT everything internally just stores things in json blobs for the _source, then what ever lucene is doing for field indexes behind the scenes (from 0.90 onwards it seems they went to a better mechanism in Lucene that does it in blocks, but I can't tell if that indexes in a 'columnar' form or not). If it's a case of just sucking up the wasted disk space (and thus slower searches/less history) for a vastly simpler querying API and data management behind the scenes that's fine, I'd just like to have confirmation that that's the RightWayToDoIt, at least for now.
 

ShuggyCoUk

Ars Legatus Legionis
10,388
Subscriptor++
You actually want the de-normalised data so Lucene can reverse-index it easily without having to do any document traversal.

I'm pretty sure the resulting IO, tokenisation savings would more than make up for it unless someone used idiotic average ratios like less than 100:1 (records to header). I admit it might need slightly deeper hooks into Lucene to achieve it with the most efficiency.

Thanks for the link, seems like the desire not to couple the indexing to the logstash forms too close is the boundary. I can accept the utility of that for making the project overall more flexible. Just a shame it looks like it leads directly to bloat in the on disk raw form, and the need to do your own ingesters (not exactly hard though).
 
Status
Not open for further replies.