I have the following question and I want to visualize two fields with each other that are not connected to each other. Both are stored in different documents but in the same index.
For example
I have document
A: B:
Values A: Values B:
C, D, E E,F,G
I want to display the values C and F now. Because the values are not stored in a document I cannot visualize them. I have already thought about Scripted Field but there is surely a more elegant solution.
Here you can also see that the field AppID is stored there but unfortunately not Appname. I want the app name to be displayed with e.g. the summed ProcCPUTimeMs.
Theoretically it is exactly that the solution I need. I have created a scripted field for it and I get the right solution. As soon as I merge 3-4 visualizations into one dashboard I get an error : [esaggs] > Request to Elasticsearch failed: {"error":{}}. There must be a more elegant solution for this ?
From the visualization example I cannot see anywhere the information coming from AppId.
What is the scripted field you're using?
It is possible to create an hardcoded mapping between AppId and AppName using a scripted field in Painless, but it must be maintained manually.
Enriching the data
The correct solution to your problem would be using an Enrich processor at indexing time.
The AppNameIdMapping documents should be stored in a separate lookup index and it would be possible to enrich the document Process:ProcessDetail with the data from the AppNameIdMapping documents using an Ingest Pipeline with the Enrich policy.
If you index the documents Process:ProcessDetail using this ingest pipeline, you will find a field lookup.AppName.
"As soon as I merge 3-4 visualizations into one dashboard I get an error"...
Would it be possible to share the HAR file of the network requests (see procedure here) while you have the error [esaggs] > Request to Elasticsearch failed: {"error":{}}?
Still, I feel like you're trying to adapt UberAgent data to the Elastic Stack, but we also offer Metricbeat, Packetbeat & APM which might cover your needs.
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.