How to write custom debugging of logstash

Hi all,

I should record in the logs of logstash something like :
loading date: .... / file name: ..... / lines insede the file: ..... / record loaded: ......

how can I do it ?

Thank you

Something like https://www.elastic.co/guide/en/logstash/1.5/plugins-filters-metrics.html may help.

ok, but how can I bring everything to a file ?
for example , when loading a file , I wish the same time was written on a text file ( .log ) the name of the file loading , the lines of the records and files loaded on ES .
it's possible?