change e.s. package to elasticsearch and add maxLogs options

add maxLogs options (to delete old logs)