Read CSV till a certain condition

Hello Guys.. i am new to logstash and trying to simulate a scenario

I have to read the CSV file i.e. get all the entries in the CSV till a specific condition is met and then use drop or something to discard the rest of the entries.. As it is read sequentially and each line is treated as an entity, is it possible ?

e.g. Read the CSV till the first entry with a value for [Status]==500 is found, when this entry is found keep the entries before this and discard the rest.

Objective : Each entry is like a http request made and i have to pick only the requests before a failure code is received from the Application Server and use these entries to visualize the behavior of the server using Kibana.

Any help would be much appreciated.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.