Answer (1)

There is a short guide on how to get data into Elasticsearch/Logstash on the documentation page.

There are some unofficial nxlog.conf examples on the web which use the pm_buffer module to guard against message loss but pm_buffer is not needed. NXLog uses flow-control, so normally messages won't be lost. If that's what you meant by 'writing to disk'.