-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[APM] index mapping update not working properly #48674
Comments
Pinging @elastic/apm-ui (Team:apm) |
@Bargs shouldn't this be labeled with |
@philippkahr I've reproduced your issue, and now understand the confusion. Afaict you are inserting fields like The UI in Discover can be confusing since a warning give the user the impression that clicking the refresh button will solve the problem. It won't. Solution A Solution B PUT apm*/_mapping/
{
"properties": {
"http.request.cookies.LASTSKIN": {
"type": "keyword",
"index": true
},
"http.request.cookies.LASTUSERNAME": {
"type": "keyword",
"index": true
}
}
} |
Hi @sqren thanks for looking into my matter! Regarding the The idea with labels is nice if you have access to the source code and can modify it properly as I saw that you need to add it as a dependency to your application and call the labels API https://www.elastic.co/guide/en/apm/agent/java/1.x/public-api.html#api-transaction-add-tag. However, I am more a DevOps / SysOps for bought products, like Jira, Bitbucket, Confluence. We are using APM basically to ensure that a user's claim about something being slow is valid or not. I am not sure if we should close this issue and generate a new issue with a title like |
How did you add
It sounds like there are two different problems:
|
to be honest, I have no idea where those fields originate from. The java application is running with a tomcat and I have added the apm jar as an
I will open one if that is ok with you?
That seems to be outta my league. I would gladly help, but I do not know how. |
Please do! :)
Totally fair. Didn't mean to imply you should do it. For now I'll wait for @felixbarny to chime in on this. |
Pinging @elastic/kibana-app (Team:KibanaApp) |
@sqren my bad, I saw APM in the title and pulled the trigger without thinking 😬 |
@felixbarny here you go for a bit more information. APM Server config
apm-server:
host: "0.0.0.0:8200"
rum:
enabled: true
output.elasticsearch:
hosts: ["elastic1:9200"]
protocol: "https"
username: "fancyuser"
password: "fancypassword"
ssl.certificate_authorities: ["/etc/ssl/certs/cachain.pem"]
pipelines:
- pipeline: "apm_match_user_id"
monitoring:
enabled: true
elasticsearch:
username: fancyuser
password: fancypassword
tags: ["itsm-test"] Ingest pipeline apm_match_user_id
PUT _ingest/pipeline/apm_match_user_id
{
"description" : "map weird user.id to user.id",
"processors" : [
{
"set": {
"field": "user.id",
"value": "{{http.request.headers.Vm_user.0}}",
"ignore_failure": true
}
}
]
} |
Not sure what the actual question is. I assume it's this?
Our agents add them automatically by default (controlled by the |
Hi @felixbarny, yes, that was the primary question. Maybe we should change |
@philippkahr I've been made aware of an experimental feature Adding the following to setup.template.enabled: true
setup.template.overwrite: true
setup.template.append_fields:
- name: http.request.cookies
type: object
dynamic: true |
@sqren I deleted my index mapping and appended that to my 7.3.0 and 7.4.0 config and it worked! Thanks for the help. Maybe that should be pointed out in the documentation somewhere? Should we close this issue now? |
Great to hear!
I agree. @bmorelli25 can you figure out if this makes sense to document somewhere? |
Interesting. I could probably add something to our troubleshooting doc with a quick walkthrough. Opened a new issue to track on the docs board: #49070 |
Kibana version:
7.3.0 & 7.4.0
Elasticsearch version:
7.3.0 & 7.4.0
Server OS version:
Centos 7
Browser version:
Chrome Dev 79.0.3941.4
Browser OS version:
MacOS
Original install method (e.g. download page, yum, from source, etc.):
yum repo
Describe the bug:
I am using the apm-server 7.3.0 and 7.4.0 with the java apm-agent. There is this issue that the index mapping does not get updated when hitting the refresh index pattern for
apm-*
.Steps to reproduce:
Expected behavior:
Just refresh the fields and make them aggregate and searchable.
Any additional context:
This originated at my question here, which is way more detailed: https://discuss.elastic.co/t/apm-index-not-refreshing/195884
The text was updated successfully, but these errors were encountered: