i'm having an issue with certain logs fields being longer than 1024 chars.
When searching for the relevant log it comes up, but the relevant field is truncated, and the remainder of the text is replaced with an ellipsis character.
(as in: field/keyword: "loglog .. .. log…"
where the '…' char appears as the 1025 char in my log field).
We're using an APM Agent in our .Net application (classic / aspx),
and are querying the data using kibana's "discover" area.
Note- we're not getting errors when posting logs, but rather that they come up "partial" when we're querying them.
This would seem to be configurable somewhere somehow. Unfortunately i couldn't figure out where this change should be applied --- Tried looking at our .Net app's web.config file, the .cs file where we implement our Application_Start() and the relevant Agent APM instance....
Couldn't find a relevant configuration option in any of them, like a truncateStringsAt or sanitization options, nor a maxLength like property for the server's json config...
Where is this limitation coming from?
Is it a server-side config? (where the logs are sent to?)
Is there some other config on the App / Object's side that i'm missing or unfamiliar with?
Any help / pointers would be greatly appreciated !
Will check the "truncate:maxHeight" setting on the server's advanced settings.
However, I think the situation is different in 2 ways from the post provided as a reference.
1st, the interface used by the user in that post is the "Dashboard", where as we're using the "Discover" mechanism to run our queries.
2nd, that user's issue seems to revolve around FINDING the info in question, due to a configurable limit, whilst our issue is with READING said data, which as mention seems to be "cut off" at the 1024th char.
so i'm unsure if this will provide a solution, but will update back promptly once we change it.
in regard to your request we "check the mapping of the field", could you point me towards any resource explaining how to access these mappings? (are they maintained on the sending / receiving side, how to i check them directly etc...)
The APM agents send data to APM server in formats that conform to JSON schemata. For example, the schema for spans is
The schema defines a max length of 1024 for many of the string fields, in order to keep APM index sizes from growing large.
The .NET agent (and I think other agents too) hard limit the size of properties on trace types like Span and Transaction in line with the schema, and add an ellipsis to indicate a value has been truncated. Generally, fields with a max length are not configurable.
Are there particular fields you're using where max length configuration would be useful?
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.