changed the elasticsearch client initialization. added script for sample console appender

@jagadeesh-huliyar @aryaKetan