I am using LogStash which accepts data from a log file, which has different types of logs.
The first row represents a custom log, whereas the second row represents a log in JSON format.
Now, I want to write a filter which will parse the logs on the basis of content and finally direct all the JSON format logs to a file called jsonformat.log and the other logs into a seperate file.