Comments (3)
those are great questions. I suspect this hasn't been revisited since app.name
was moved to context.app.name
and has not been tested since the onboarding document was introduced. A possible solution would be to allow the onboarding document to go to a separate index. This could prove non-trivial to do. Let's discuss at our weekly. Could you put it on the agenda?
from apm-server.
@roncohen I started working on this but ran into issues. With this configuration (yes it's slightly different than the docs, more on that later):
output.elasticsearch:
index: "apm-%{[beat.version]}-%{[app.name]}"
setup.template.name: "apm-%{[beat.version]}"
setup.template.pattern: "apm-%{[beat.version]}-*"
The onboarding event:
{
"@timestamp": "2017-12-01T21:21:24.418Z",
"@metadata": {
"beat": "apm-server",
"type": "doc",
"version": "7.0.0-alpha1"
},
"listening": "localhost:8200",
"beat": {
"name": "local",
"hostname": "local",
"version": "7.0.0-alpha1"
}
}
fails to index:
client.go:280: DBG [elasticsearch] PublishEvents: 1 events have been published to elasticsearch in 2.141084ms.
client.go:469: DBG [elasticsearch] Bulk item insert failed (i=0, status=500): {"type":"string_index_out_of_bounds_exception","reason":"String index out of range: 0"}
Same issue with pushing a typical event.
Modifying that config slightly to:
output.elasticsearch:
index: "apm-%{[beat.version]}-%{[context.app.name]}"
allowed the payload to load property but the onboarding document still fails, as expected, since it does not have a context.app.name
(or even an app.name
). Is context.app.name
acceptable for the configuration? Is there a way to make app.name
reference context.app.name
?
Back to the setup.template.pattern
- do you know if that's prefix match only? The same question was asked here but the docs haven't been updated and I haven't tracked down the code that uses it yet or figured out how to just try it out yet.
from apm-server.
Per discussion, we'll hold off on supporting splitting events into per-application indexes. I'll propose updates to the documentation shortly to reflect that.
from apm-server.
Related Issues (20)
- ea-managed apm-server smoke test fails HOT 4
- dev/test dependencies included in the final binary HOT 1
- Review and update changelog with docappender changes HOT 1
- Incorrect otlp/http http.response.status_code in request log
- feat: support otlp/http JSON protobuf encoding
- apm-server binary is not statically linked HOT 1
- Support APM Server on Amazon Linux 2023
- [docs] Remove false deprecation note for standalone apm-server
- APM Server 8.13.0 Test Plan HOT 1
- Document release process with the automation workflow HOT 4
- [DOCS] Create openAPI specifications for public APM APIs
- Fix automation, bring back openAPI spec HOT 1
- API UI failing for error events derived from traces with Jaeger agent
- APM Server 8.14.0 Test Plan HOT 6
- ci: minor-release automation is not aligned with expectations HOT 4
- ci: minor-release automation does not sign commits HOT 3
- release: review test plan template
- Consider flattening headers and cookies HOT 8
- Perf regression, too many small bulk requests HOT 5
- Document 7.17.20 being broken for apm-server managed by Fleet with self-signed certificates HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apm-server.