Hello.
I have several logs with the following names, where [E-1].[P-28], [E-1].[P-45] and [E-1].[P-51] are operators that generate these logs (I only can identify them by obtaining from the file name)
p2sajava131.srv.gva.es_11101.log.online.[E-1].[P-28].21.01.21.log
p1sajava130.srv.gva.es_11101.log.online.[E-1].[P-45].21.03.04.log
p1sajava130.srv.gva.es_11101.log.online.[E-1].[P-51].21.03.04.log
...
How can i create a new field with, mutate o translate in logstash, with the next conditions:
if contains [E-1].[P-28] => Operator-1
if contains [E-1].[P-45] => Operator-2
if contains [E-1].[P-51] => Operator-3
Thanx