Basically I have a big log with a lot of lines that are all connected to some of the Tests in Jenkins(for example ID: Ts4567, Ts7890, Ts1234, etc).
Now the point what I want to achieve is for example: I want to write in search ts_name: Ts4567 and then in output(Messages block in Graylog GUI), there should be listed only lines that are connected to this field, between two timestamps(start and the end).
How should I make this happen? Via Pipeline maybe? If someone can write the example I would appreciate it much. Thanks!
Let’s say the parameters are:
ID of the Test: Ts4567 Start: 2019-12-03T07:49:44,702 End: 2019-12-03T07:52:14,463
Note: Not every line consist Ts4567, so I can’t just type “Ts4567” in the search and get all the lines. I need to use timestamps and somehow connect these lines to the field, and after that search for it.
Timestamp is in message field. Look example of a log line bellow:
message 2019-12-03T07:50:43,011 TRACE o.a.k.c.p.i.ProducerBatch [kafka-producer-network-thread | producer-3] Successfully produced messages to dev_module_0_storage_priority-0 with base offset 30498.