elasticsearch: create required folders

Closes #19994.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>