# If we can call API with designated cookie to retrieve the log before outputing to downstream in Filebeat

**URL:** <https://discuss.elastic.co/t/if-we-can-call-api-with-designated-cookie-to-retrieve-the-log-before-outputing-to-downstream-in-filebeat/372208>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 19, 2024, 8:15am UTC](https://discuss.elastic.co/t/if-we-can-call-api-with-designated-cookie-to-retrieve-the-log-before-outputing-to-downstream-in-filebeat/372208 "2024-12-19T08:15:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason9988](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@Jason9988](https://discuss.elastic.co/u/Jason9988)\
**Post date:** [December 19, 2024, 8:15am UTC](https://discuss.elastic.co/t/if-we-can-call-api-with-designated-cookie-to-retrieve-the-log-before-outputing-to-downstream-in-filebeat/372208/1 "2024-12-19T08:15:22Z")

</div>

if we can call API with designated cookie to retrieve the log before outputting to downstream in Filebeat ?

Scenarios:

1. My server have generated the first batch 1000 records log with cookie information
2. I need to extract the cookie information in the first batch log
3. Then I want to trigger a call to my endpoint in my application server with the extracted cookie to retrieve second batch log in filebeat, the what would be the solution ?
