No document with transactions type: request in elasticsearch index

Hi,

After installing xpack to elasticsearch, i am able to discover , visualize, create dashboards with data coming in but From APM am unable to list/filter services,
accessing apm with servicename modfied manually in url says no transactions available.

Noticed in elasticsearch index documents with type request were not present.

elasticsearch index documents with type {doc, db.mongodb.query} only could be found.

Need to know what could be wrong.

Apm server config is as below.

apm-server:
host: "vm1:8200"
frontend:
enabled: false
#==================== Elasticsearch template setting ==========================
setup.template.settings:
index.number_of_shards: 2
index.codec: best_compression

setup.kibana:

host: "127.0.0.1:5601"
username: "kibana"
password: "kibana"

output.elasticsearch:
hosts: ["vm1:9200"]
username: "elastic"
password: "elastic"

- index: "apm-edge-iwo-ta-ds-sourcemap"
  when.contains:
    processor.event: "sourcemap"
- index: "apm-edge-iwo-ta-ds-error"
  when.contains:
    processor.name: "error"
- index: "apm-edge-iwo-ta-ds-transaction"
  when.contains:
    processor.name: "transaction"

Hi Mehdi, Sorry for the issue and the slow reply.

I don't know if you copied your entire configuration, but if you change the default index names in the elasticsearch output, you should also change accordingly setup.template.name, setup.template.pattern and setup.dashboards.index.

Can you try out the following?

output.elasticsearch:

  • index: "apm-edge-iwo-ta-ds-%{[beat.version]}-sourcemap"
    when.contains:
    processor.event: "sourcemap"
  • index: "apm-edge-iwo-ta-ds-%{[beat.version]}-error-%{+yyyy.MM.dd}"
    when.contains:
    processor.name: "error"
  • index: "apm-edge-iwo-ta-ds-%{[beat.version]}-transaction-%{+yyyy.MM.dd}"
    when.contains:
    processor.name: "transaction"

setup.template.name: apm-edge-iwo-ta-ds-*
setup.template.pattern: apm-edge-iwo-ta-ds-*
setup.dashboards.index: apm-edge-iwo-ta-ds-*

If that still doesn't work, can you try it with the defaults, to rule out a possible issue with index names?

Let me know how it goes!

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