If there is an error log in an application, how to send log files onto elastic search

i am new to Elastic Search, i would like to consult what are supposed to be the options of the field of "level" ? "Error", "Debug", "Warnings" , "Information" ? thanks

I guess it depends on your logger and what it sends...
How are you generating logs in your application?