Beats 1.2.1 released | Elastic Blog
Releases

# Beats 1.2.1 released

Today we are pleased to announce the bug fix release of Beats 1.2.1.

## Change the behaviour of environment variables expansion

Version 1.2.0 introduced the possibility of using environment variables in the configuration file. This is a great feature because it allows you to inject settings via environment variables, but the way it was initially implemented was a bit too simplistic. The way it worked was that before parsing the configuration file, the code simply replaced strings like $NAME or ${NAME} with the value of the NAME environment variable.

However, we didn't account for the usage of $ as a literal in configurations files. For example, if a dollar sign shows up in a password or in a regular expression, it will get removed together with the word next to it. This can break existing configuration files. In Beats 1.2.1 we restrict to one form and replace only ${NAME} with the value of the NAME environment variable.

We started our own configuration handling library to improve the environment variables expansion so that it works only on selected options.

2. Fixed Topbeat issue with the cpu.system_p value being occasionally greater than 1 on Windows.  The fix was to not do floating point arithmetic.