How to feed entire logfile to elasticsearch as a message

What do you mean?
Do you have a config and sample log you can show?