If there are authentication failures or other Elasticsearch related errors when searching and visualizing events or when indexing events in the Spark job, you can increase the logging level to DEBUG in Elasticsearch. For more information, see Elasticsearch documentation.