How to count exact unique APM transactions

We are using ELK stack on windows server 2016. ELK stack has version 7.16.2.

I want to count the number of transactions on this URL. I don't know if its possible.

its because we want to know how many times this link was visited.
Any help would be appreciated. Thanks

Since transactions are stored in indices that match the pattern apm-*-transaction, you'd be able to do a count on this to get the number of transactions with the given name

GET apm-*-transaction/_count
{
  "query": {
    "term": {
      "transaction.name": {
        "value": "GET /mit/<blank>lagger/"
      }
    }
  }
}

Thanks a lot.
I got following result:
image

Is it possible to select date e.g one month / or 1 week. And also only from Prod environment.

I have tried using visualization in Analytics -> Discover and it seems to be working. Ofcourse it would be nice to also know how to get the same result via query

Did you change the value for transaction.name, to match your screenshot?

You can set a time range by combining a range query with the term query, as filter clauses in a bool query.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.