is there a common way or guideline how to convert webserver access log information (like from a haproxy/nginx/apache service) into APM transactions/spans?
Would it be enough to include typical ECS common schema fields like transaction.id and then configure a filebeat to send the data to the apm-* index? Or is it necessary to use APM-specific APIs to push in the data?
is there a common way or guideline how to convert webserver access log information (like from a haproxy/nginx/apache service) into APM transactions/spans?
I'm not aware of anything published on this.
Would it be enough to include typical ECS common schema fields like transaction.id and then configure a filebeat to send the data to the apm-* index? Or is it necessary to use APM-specific APIs to push in the data?
Sometimes you might hear us saying that APM data is "just another index". You do not need to go through the APM Server; it's enough that it has the right schema, and lives in the right indices.
Not all of those fields are required. Unfortunately I don't think we have documented which fields are required. At a minimum, you should set the following:
trace.id
transaction.id
transaction.name (value should ideally be something low cardinality, as it will be used for grouping)
transaction.type (value should be "request" for HTTP requests)
transaction.result (value will be used for grouping, e.g. we group all requests with status code 200-299 with the result "HTTP 2xx")
transaction.duration.us (transaction duration in microseconds)
host.hostname
host.name (may be the same as host.hostname)
processor.event (value should be "transaction" for HTTP requests)
thank you, I was hoping you would say something like that! We had tried (rather blindly) to add some APM-looking fields, but couldn't get anything to show up in the APM UI so far. We'll give it another shot using the fields you mentioned, and hopefully report back successfully.
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.