- Notifications
You must be signed in to change notification settings - Fork 327
Ship logs via intake API #2694
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
Ship logs via intake API #2694
Conversation
Uses an imaginary `log` event that's not actually available in the intake API
| Now that APM server support for logs intake is merged (elastic/apm-server#9068), this should not be blocked anymore |
| Unfortunately, we're still kinda blocked as most of the fields used by ECS loggers, such as |
| /test |
JonasKunz left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, can't wait to see this in action!
Haven't had a look at the tests yet, I'll do so in the next iteration.
apm-agent-core/src/main/java/co/elastic/apm/agent/report/ReportingEvent.java Outdated Show resolved Hide resolved
apm-agent-core/src/main/java/co/elastic/apm/agent/logging/ApmServerLogAppender.java Show resolved Hide resolved
apm-agent-core/src/main/java/co/elastic/apm/agent/logging/ApmServerLogAppender.java Show resolved Hide resolved
apm-agent-core/src/main/java/co/elastic/apm/agent/logging/ApmServerLogAppender.java Show resolved Hide resolved
apm-agent-core/src/main/java/co/elastic/apm/agent/logging/Log4j2ConfigurationFactory.java Outdated Show resolved Hide resolved
apm-agent-core/src/main/java/co/elastic/apm/agent/report/IntakeV2ReportingEventHandler.java Show resolved Hide resolved
apm-agent-core/src/main/java/co/elastic/apm/agent/report/IntakeV2ReportingEventHandler.java Outdated Show resolved Hide resolved
apm-agent-core/src/main/java/co/elastic/apm/agent/report/IntakeV2ReportingEventHandler.java Show resolved Hide resolved
apm-agent-core/src/main/java/co/elastic/apm/agent/report/MutableLogger.java Outdated Show resolved Hide resolved
apm-agent-core/src/main/java/co/elastic/apm/agent/util/IOUtils.java Outdated Show resolved Hide resolved
JonasKunz left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work!
...g4j2-plugin/src/test/java/co/elastic/apm/agent/log4j2/Log4j2InstrumentationTestVersions.java Show resolved Hide resolved
…actions * upstream/main: (76 commits) Bump version.byte-buddy from 1.12.20 to 1.12.21 (#2953) Fix instrumentation for WebFlux with Spring 6.x (#2936) Fix SQS instrumentation within messaging transactions (#2979) Add test for unsampled Transaction (#2950) clarify about dropped requests for sampling in documentation (#2957) Doc add first stack trace detail (#2978) SpanBuilder.addLink is supported, so delete wrong comment (#2975) [doc] document log sending (#2929) Fix agent log sending (#2974) Bump version.aws.sdk from 2.19.8 to 2.19.18 in /apm-agent-plugins (#2973) test: synchronizing gherkin specs (#2965) Bump aws-java-sdk from 1.12.353 to 1.12.376 in /apm-agent-plugins (#2944) Fixed AgentOverheadMetricsTest flakyness (#2918) Fix AWS instrumentation destination.service.resource handling (#2947) [doc] restructure logs doc (#2916) Junit5 test with dependencies runner (#2962) Set service target for non-sampled ES client spans (#2959) Send logs via intake API (#2694) [doc] setup with docker image (#2956) Increase CI build timeout (#2955) ...
What does this PR do?
Implements sending logs directly from APM agent to APM server.
Checklist