Skip to content

Commit

Permalink
[Observability] Populate service.name for custom logs as part of auto…
Browse files Browse the repository at this point in the history
…-detect flow (#199827)

Resolves elastic/observability-dev#4038

## Summary

Populate service.name for custom logs as part of auto-detect flow

## Screenshot

<img width="705" alt="Screenshot 2024-11-12 at 17 10 29"
src="https://github.com/user-attachments/assets/2eeb846c-9006-4252-81a0-ea5d4b5cdb8b">
  • Loading branch information
thomheymann authored Nov 13, 2024
1 parent 4ad25cf commit 4ba25f2
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ const createFlowRoute = createObservabilityOnboardingServerRoute({
* --header "Accept: application/x-tar" \
* --header "Content-Type: text/tab-separated-values" \
* --header "kbn-xsrf: true" \
* --data $'system\tregistry\nproduct_service\tcustom\t/path/to/access.log\ncheckout_service\tcustom\t/path/to/access.log' \
* --header "x-elastic-internal-origin: Kibana" \
* --data $'system\tregistry\twebserver01\nproduct_service\tcustom\t/path/to/access.log\ncheckout_service\tcustom\t/path/to/access.log' \
* --output - | tar -tvf -
* ```
*/
Expand Down Expand Up @@ -456,6 +457,16 @@ async function ensureInstalledIntegrations(
id: `filestream-${pkgName}`,
data_stream: dataStream,
paths: integration.logFilePaths,
processors: [
{
add_fields: {
target: 'service',
fields: {
name: pkgName,
},
},
},
],
},
],
},
Expand Down

0 comments on commit 4ba25f2

Please sign in to comment.