Skip to content

Commit

Permalink
Do not use ProgramData in Beats .cmd helper script (#238)
Browse files Browse the repository at this point in the history
* Fix the paths in the $beat.cmd helper script automatically added to the path.
* Remove references to ProgramData.
  • Loading branch information
cmacknz authored Feb 8, 2024
1 parent 1518434 commit 0f861f5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion docs/beats.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Beats is the platform for single-purpose data shippers. They send data from hund

### Notes:

- Configuration files (.yml), Kibana dashboards, security and monitoring modules, etc are installed into `%ProgramData%\Elastic\Beats\{beat name}` directory.
- Beats that support running as Windows Service are registered as such. Service will **not** be started after installation finishes, because configuration file likely lacks proper host information for elasticsearch. In this version, user needs to manually edit the configuration file to point Beats to an elasticsearch cluster.
- When running as a Windows Service, Beats will create their `logs` and `data` directories in the location mentioned above.

Expand Down
1 change: 0 additions & 1 deletion docs/elastibuild.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
- Discover branches, versions and aliases
- Fetch any beat from above
- Build any beat from downloaded archives in non-OSS variant
- Configuration and misc files installed into ProgramData/Elastic/{version}/Beats/{beat}/

### Get help:
```
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/installer/BeatPackageCompiler/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ if "%args%" == "" (
)

set beat_bin=%~dp0%~n0
set beat_data=%ProgramData%\Elastic\Beats\%~n0
set beat_data=%beat_bin%

"%beat_bin%\%~n0.exe" ^
--path.home "%beat_bin%" ^
Expand All @@ -136,4 +136,4 @@ set beat_data=%ProgramData%\Elastic\Beats\%~n0
--E logging.files.redirect_stderr=true ^
%args%</value>
</data>
</root>
</root>

0 comments on commit 0f861f5

Please sign in to comment.