Hello everybody!. Right now I'm facing the following situation:
I need to create a Timelion graph that displays information from different indices which represent logs taken from different sources. The structure of these indices is not normalized, meaning that not all fields are named exactly the same in all of them.
I.E: in two of my indices I have a "severity_label" field used for representing the severity of the log. As possible values for this label, I have: "Warning", "Error", "Critical" and so on.
However, in another index, these possible set of values is under a field called "level". If I want to create a Timelion graph using split, it will only work for the first two indices and I can accomplish that by writing down the following expression:
Is there a way I can tell Timelion that I also want to include the third index but the field it should consider for that aggregation is "level" instead of "severity_label"? It should be something like:
You're on the right path. Using the scripted field gets you there without having to reindex your data in Elasticsearch so that the fields are the same. If you're ever interested in doing that, there are docs to help you. The script portion of your reindex in order to change the name of the field would be like:
Thanks for your reply!. The problem I'm having right now is that apparently scripted fields cannot be aggregated within different indices.
Following the same example I mentioned before, I now have 3 indices (that represent different types of logs) that contain a field called "severity_label". However, in one of them, "severity_label" is a scripted field.
When I try to write a Timelion expression for splitting these 3 indices based on the field "severity_label", I'm getting the aggregation but only for the first two indices, the ones where the field is not scripted.
The one that contains "severity_label" as a scripted field does not appear in the visualization.
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.