elasticsearch: fix 1.2.1 log path parsing

Closes #30728.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>