Unable to split the logs using child pipeline

Hi
I can get all application logs in kibana dashboard. But I want to split the logs using log.file.path and send that respective logs to child pipeline that's why I tried conditions like
if ([log][file][path] == ["/var/logs/sl-inbound-events-logs.log"]) {
pipeline {
send_to => "slinbound"
}
} else if ([log][file][path] == ["/var/logs/docusign-adapter-logs.log"]) {
pipeline {
send_to => "docusign-adapter"
}
}
Both index I am getting docusign-adapter logs only. Please any one suggest me to get slinbound logs.

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