add log messages.
support elasticsearch version 0.90.11