Skip to content

Commit

Permalink
Use binaryName instead of component ID for data_streams. 8.6 only (#1845
Browse files Browse the repository at this point in the history
)
  • Loading branch information
blakerouse authored Nov 30, 2022
1 parent 14c6448 commit 6bf8465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/component/runtime/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ func (c *CommandRuntime) getCommandSpec() *component.CommandSpec {

func attachOutErr(comp component.Component, cmdSpec *component.CommandSpec, typeStr string, binaryName string) process.CmdOption {
return func(cmd *exec.Cmd) error {
dataset := fmt.Sprintf("elastic_agent.%s", strings.ReplaceAll(strings.ReplaceAll(comp.ID, "-", "_"), "/", "_"))
dataset := fmt.Sprintf("elastic_agent.%s", strings.ReplaceAll(strings.ReplaceAll(binaryName, "-", "_"), "/", "_"))
logger := logger.NewWithoutConfig("").With("component", map[string]interface{}{
"id": comp.ID,
"type": typeStr,
Expand Down

0 comments on commit 6bf8465

Please sign in to comment.