# Unable to split the logs using child pipeline

**URL:** <https://discuss.elastic.co/t/unable-to-split-the-logs-using-child-pipeline/313944>\
**Category:** Logstash\
**Created:** [September 8, 2022, 5:31am UTC](https://discuss.elastic.co/t/unable-to-split-the-logs-using-child-pipeline/313944 "2022-09-08T05:31:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abinayaganesan](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@Abinayaganesan](https://discuss.elastic.co/u/Abinayaganesan)\
**Post date:** [September 8, 2022, 5:31am UTC](https://discuss.elastic.co/t/unable-to-split-the-logs-using-child-pipeline/313944/1 "2022-09-08T05:31:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 6, 2022, 5:32am UTC](https://discuss.elastic.co/t/unable-to-split-the-logs-using-child-pipeline/313944/2 "2022-10-06T05:32:03Z")

</div>

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