A newer version is available. For the latest information, see the
current release documentation.
Transaction Indicesedit
Transactions are by default stored to indices of the format apm-[version]-transaction-[date]
.
Example Documentsedit
See how transaction documents can look like when indexed in Elasticsearch:
[ { "@timestamp": "2017-05-30T18:53:42.281Z", "agent": { "name": "elastic-node", "version": "3.14.0" }, "container": { "id": "container-id" }, "ecs": { "version": "1.5.0" }, "event": { "ingested": "2020-04-22T14:49:24.899906Z" }, "host": { "architecture": "x64", "ip": "127.0.0.1", "os": { "platform": "darwin" } }, "kubernetes": { "namespace": "namespace1", "pod": { "name": "pod-name", "uid": "pod-uid" } }, "observer": { "ephemeral_id": "f78f6762-2157-4322-95aa-aecd2f486c1a", "hostname": "ix.lan", "id": "80b79979-4a7d-450d-b2ce-75c589f7fffd", "type": "apm-server", "version": "8.0.0", "version_major": 8 }, "process": { "args": [ "node", "server.js" ], "pid": 1234, "ppid": 6789, "title": "node" }, "processor": { "event": "transaction", "name": "transaction" }, "service": { "environment": "staging", "framework": { "name": "Express", "version": "1.2.3" }, "language": { "name": "ecmascript", "version": "8" }, "name": "1234_service-12a3", "node": { "name": "container-id" }, "runtime": { "name": "node", "version": "8.0.0" }, "version": "5.1.3" }, "timestamp": { "us": 1496170422281000 }, "trace": { "id": "85925e55b43f4340aaaaaaaaaaaaaaaa" }, "transaction": { "duration": { "us": 13980 }, "id": "85925e55b43f4340", "name": "GET /api/types", "result": "failure", "sampled": true, "span_count": { "started": 0 }, "type": "request" }, "user": { "email": "foo@bar.com", "id": "123user", "name": "foo" } }, { "@timestamp": "2017-05-30T18:53:42.000Z", "agent": { "name": "elastic-node", "version": "3.14.0" }, "container": { "id": "container-id" }, "ecs": { "version": "1.5.0" }, "event": { "ingested": "2020-04-22T14:49:24.900309Z" }, "host": { "architecture": "x64", "ip": "127.0.0.1", "os": { "platform": "darwin" } }, "kubernetes": { "namespace": "namespace1", "pod": { "name": "pod-name", "uid": "pod-uid" } }, "observer": { "ephemeral_id": "f78f6762-2157-4322-95aa-aecd2f486c1a", "hostname": "ix.lan", "id": "80b79979-4a7d-450d-b2ce-75c589f7fffd", "type": "apm-server", "version": "8.0.0", "version_major": 8 }, "process": { "args": [ "node", "server.js" ], "pid": 1234, "ppid": 6789, "title": "node" }, "processor": { "event": "transaction", "name": "transaction" }, "service": { "environment": "staging", "framework": { "name": "Express", "version": "1.2.3" }, "language": { "name": "ecmascript", "version": "8" }, "name": "1234_service-12a3", "node": { "name": "container-id" }, "runtime": { "name": "node", "version": "8.0.0" }, "version": "5.1.3" }, "timestamp": { "us": 1496170422000000 }, "trace": { "id": "85925e55b43f4341aaaaaaaaaaaaaaaa" }, "transaction": { "duration": { "us": 13980 }, "id": "85925e55b43f4341", "name": "GET /api/types", "result": "200", "sampled": false, "span_count": { "started": 0 }, "type": "request" }, "user": { "email": "foo@bar.com", "id": "123user", "name": "foo" } }, { "@timestamp": "2017-05-30T18:53:42.281Z", "agent": { "name": "elastic-node", "version": "3.14.0" }, "container": { "id": "container-id" }, "ecs": { "version": "1.5.0" }, "event": { "ingested": "2020-04-22T14:49:24.900644Z" }, "host": { "architecture": "x64", "ip": "127.0.0.1", "os": { "platform": "darwin" } }, "kubernetes": { "namespace": "namespace1", "pod": { "name": "pod-name", "uid": "pod-uid" } }, "observer": { "ephemeral_id": "f78f6762-2157-4322-95aa-aecd2f486c1a", "hostname": "ix.lan", "id": "80b79979-4a7d-450d-b2ce-75c589f7fffd", "type": "apm-server", "version": "8.0.0", "version_major": 8 }, "process": { "args": [ "node", "server.js" ], "pid": 1234, "ppid": 6789, "title": "node" }, "processor": { "event": "transaction", "name": "transaction" }, "service": { "environment": "staging", "framework": { "name": "Express", "version": "1.2.3" }, "language": { "name": "ecmascript", "version": "8" }, "name": "1234_service-12a3", "node": { "name": "container-id" }, "runtime": { "name": "node", "version": "8.0.0" }, "version": "5.1.3" }, "timestamp": { "us": 1496170422281999 }, "trace": { "id": "85925e55b43f4342aaaaaaaaaaaaaaaa" }, "transaction": { "duration": { "us": 13980 }, "id": "85925e55b43f4342", "name": "GET /api/types", "result": "200", "sampled": true, "span_count": { "dropped": 258, "started": 1 }, "type": "request" }, "user": { "email": "foo@bar.com", "id": "123user", "name": "foo" } }, { "@timestamp": "2017-05-30T18:53:27.154Z", "agent": { "name": "js-base", "version": "1.3" }, "client": { "geo": { "continent_name": "North America", "country_iso_code": "US", "location": { "lat": 37.751, "lon": -97.822 } }, "ip": "8.8.8.8" }, "container": { "id": "container-id" }, "ecs": { "version": "1.5.0" }, "event": { "ingested": "2020-04-22T14:49:24.844687Z" }, "host": { "architecture": "x64", "ip": "127.0.0.1", "os": { "platform": "darwin" } }, "http": { "request": { "body": { "original": { "additional": { "bar": 123, "req": "additional information" }, "str": "hello world" } }, "cookies": { "c1": "v1", "c2": "v2" }, "env": { "GATEWAY_INTERFACE": "CGI/1.1", "SERVER_SOFTWARE": "nginx" }, "headers": { "Array": [ "foo", "bar", "baz" ], "Content-Type": [ "text/html" ], "Cookie": [ "c1=v1,c2=v2" ], "Some-Other-Header": [ "foo" ], "User-Agent": [ "Mozilla Chrome Edge" ] }, "method": "post", "socket": { "encrypted": true, "remote_address": "8.8.8.8" } }, "response": { "finished": true, "headers": { "Content-Type": [ "application/json" ] }, "headers_sent": true, "status_code": 200 }, "version": "1.1" }, "kubernetes": { "namespace": "namespace1", "pod": { "name": "pod-name", "uid": "pod-uid" } }, "labels": { "bool_error": false, "number_code": 2, "organization_uuid": "9f0e9d64-c185-4d21-a6f4-4673ed561ec8" }, "observer": { "ephemeral_id": "f78f6762-2157-4322-95aa-aecd2f486c1a", "hostname": "ix.lan", "id": "80b79979-4a7d-450d-b2ce-75c589f7fffd", "type": "apm-server", "version": "8.0.0", "version_major": 8 }, "process": { "args": [ "node", "server.js" ], "pid": 1234, "ppid": 6789, "title": "node" }, "processor": { "event": "transaction", "name": "transaction" }, "service": { "environment": "staging", "framework": { "name": "Express", "version": "1.2.3" }, "language": { "name": "ecmascript", "version": "8" }, "name": "serviceabc", "node": { "name": "special-name" }, "runtime": { "name": "javascript", "version": "8.0.0" }, "version": "5.1.3" }, "source": { "ip": "8.8.8.8" }, "timestamp": { "us": 1496170407154000 }, "trace": { "id": "945254c567a5417eaaaaaaaaaaaaaaaa" }, "transaction": { "custom": { "(": "not a valid regex and that is fine", "and_objects": { "foo": [ "bar", "baz" ] }, "my_key": 1, "some_other_value": "foo bar" }, "duration": { "us": 32592 }, "id": "945254c567a5417e", "marks": { "another_mark": { "some_float": 10, "some_long": 10 }, "navigationTiming": { "appBeforeBootstrap": 608.9300000000001, "navigationStart": -21 } }, "name": "GET /api/types", "page": { "referer": "http://localhost:8000/test/e2e/", "url": "http://localhost:8000/test/e2e/general-usecase/" }, "result": "success", "sampled": true, "span_count": { "dropped": 2, "started": 4 }, "type": "request" }, "url": { "domain": "www.example.com", "fragment": "#hash", "full": "https://www.example.com/p/a/t/h?query=string#hash", "original": "/p/a/t/h?query=string#hash", "path": "/p/a/t/h", "port": 8080, "query": "?query=string", "scheme": "https" }, "user": { "email": "foo@example.com", "id": "99" }, "user_agent": { "device": { "name": "Other" }, "name": "Other", "original": "Mozilla Chrome Edge" } } ]