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:

{
    "events": [
        {
            "@timestamp": "2018-08-01T10:00:00Z",
            "context": {
                "process": {
                    "argv": [
                        "node",
                        "server.js"
                    ],
                    "pid": 1234,
                    "ppid": 6789,
                    "title": "node"
                },
                "service": {
                    "agent": {
                        "name": "elastic-node",
                        "version": "3.14.0"
                    },
                    "environment": "staging",
                    "framework": {
                        "name": "Express",
                        "version": "1.2.3"
                    },
                    "language": {
                        "name": "ecmascript",
                        "version": "8"
                    },
                    "name": "1234_service-12a3",
                    "runtime": {
                        "name": "node",
                        "version": "8.0.0"
                    },
                    "version": "5.1.3"
                },
                "system": {
                    "architecture": "x64",
                    "hostname": "prod1.example.com",
                    "ip": "192.0.0.1",
                    "platform": "darwin"
                }
            },
            "parent": {
                "id": "abcdefabcdef01234567"
            },
            "processor": {
                "event": "transaction",
                "name": "transaction"
            },
            "timestamp": {
                "us": 1533117600000000
            },
            "trace": {
                "id": "0123456789abcdef0123456789abcdef"
            },
            "transaction": {
                "duration": {
                    "us": 32592
                },
                "id": "945254c567a5417e",
                "sampled": true,
                "span_count": {
                    "started": 43
                },
                "type": "request"
            }
        },
        {
            "@timestamp": "2017-05-30T18:53:27.154Z",
            "context": {
                "custom": {
                    "(": "not a valid regex and that is fine",
                    "and_objects": {
                        "foo": [
                            "bar",
                            "baz"
                        ]
                    },
                    "my_key": 1,
                    "some_other_value": "foo bar"
                },
                "process": {
                    "argv": [
                        "node",
                        "server.js"
                    ],
                    "pid": 1234,
                    "ppid": 6789,
                    "title": "node"
                },
                "request": {
                    "body": {
                        "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"
                    },
                    "http_version": "1.1",
                    "method": "POST",
                    "socket": {
                        "encrypted": true,
                        "remote_address": "12.53.12.1"
                    },
                    "url": {
                        "full": "https://www.example.com/p/a/t/h?query=string#hash",
                        "hash": "#hash",
                        "hostname": "www.example.com",
                        "pathname": "/p/a/t/h",
                        "port": "8080",
                        "protocol": "https:",
                        "raw": "/p/a/t/h?query=string#hash",
                        "search": "?query=string"
                    }
                },
                "response": {
                    "finished": true,
                    "headers": {
                        "content-type": "application/json"
                    },
                    "headers_sent": true,
                    "status_code": 200
                },
                "service": {
                    "agent": {
                        "name": "elastic-node",
                        "version": "3.14.0"
                    },
                    "environment": "staging",
                    "framework": {
                        "name": "Express",
                        "version": "1.2.3"
                    },
                    "language": {
                        "name": "ecmascript",
                        "version": "8"
                    },
                    "name": "1234_service-12a3",
                    "runtime": {
                        "name": "node",
                        "version": "8.0.0"
                    },
                    "version": "5.1.3"
                },
                "system": {
                    "architecture": "x64",
                    "hostname": "prod1.example.com",
                    "ip": "192.0.0.1",
                    "platform": "darwin"
                },
                "tags": {
                    "organization_uuid": "9f0e9d64-c185-4d21-a6f4-4673ed561ec8"
                },
                "user": {
                    "email": "foo@example.com",
                    "id": "99",
                    "username": "foo"
                }
            },
            "processor": {
                "event": "transaction",
                "name": "transaction"
            },
            "timestamp": {
                "us": 1496170407154000
            },
            "trace": {
                "id": "0acd456789abcdef0123456789abcdef"
            },
            "transaction": {
                "duration": {
                    "us": 32592
                },
                "id": "4340a8e0df1906ecbfa9",
                "name": "GET /api/types",
                "result": "success",
                "sampled": true,
                "span_count": {
                    "started": 17
                },
                "type": "request"
            }
        },
        {
            "@timestamp": "2018-07-30T18:53:42.281Z",
            "context": {
                "process": {
                    "argv": [
                        "node",
                        "server.js"
                    ],
                    "pid": 1234,
                    "ppid": 6789,
                    "title": "node"
                },
                "request": {
                    "method": "POST"
                },
                "service": {
                    "agent": {
                        "name": "elastic-node",
                        "version": "3.14.0"
                    },
                    "environment": "staging",
                    "framework": {
                        "name": "Express",
                        "version": "1.2.3"
                    },
                    "language": {
                        "name": "ecmascript",
                        "version": "8"
                    },
                    "name": "1234_service-12a3",
                    "runtime": {
                        "name": "node",
                        "version": "8.0.0"
                    },
                    "version": "5.1.3"
                },
                "system": {
                    "architecture": "x64",
                    "hostname": "prod1.example.com",
                    "ip": "192.0.0.1",
                    "platform": "darwin"
                }
            },
            "processor": {
                "event": "transaction",
                "name": "transaction"
            },
            "timestamp": {
                "us": 1532976822281000
            },
            "trace": {
                "id": "0acd456789abcdef0123456789abcdef"
            },
            "transaction": {
                "duration": {
                    "us": 13980
                },
                "id": "cdef4340a8e0df19",
                "marks": {
                    "another_mark": {
                        "some_float": 10,
                        "some_long": 10
                    },
                    "navigationTiming": {
                        "appBeforeBootstrap": 608.93,
                        "navigationStart": -21
                    }
                },
                "sampled": true,
                "span_count": {
                    "dropped": {
                        "total": 55
                    },
                    "started": 436
                },
                "type": "request"
            }
        }
    ]
}