def hash_id(iso_timestamp, msg):
return '<STR_LIT>'.format(iso_timestamp,<EOL>hashlib.sha1(<EOL>msg.get('<STR_LIT>').encode('<STR_LIT:utf-8>') +<EOL>str(msg.get('<STR_LIT>')).<EOL>encode('<STR_LIT:utf-8>')).<EOL>hexdigest())<EOL>
Generate event id, optimized for ES.