# Ingest Pipeline Stats - Processor \`if\` (conditional) measurement

**URL:** <https://discuss.elastic.co/t/ingest-pipeline-stats-processor-if-conditional-measurement/340707>\
**Category:** Elasticsearch\
**Tags:** ingest-pipeline\
**Created:** [August 13, 2023, 8:18pm UTC](https://discuss.elastic.co/t/ingest-pipeline-stats-processor-if-conditional-measurement/340707 "2023-08-13T20:18:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenB196](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benb196/32/83401_2.png) [@BenB196](https://discuss.elastic.co/u/BenB196)\
**Post date:** [August 13, 2023, 8:18pm UTC](https://discuss.elastic.co/t/ingest-pipeline-stats-processor-if-conditional-measurement/340707/1 "2023-08-13T20:18:52Z")

</div>

Hi All,

I have a question related to the Ingest Pipeline stats that are part of the [node stats api](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html).

The API returns the time it takes to process a doc for a given processor, but what isn't clear to me is does the time also include the duration it took for the document to check the processors `if` condition statement?

I wasn't able to really find anything about this topic, so asking here. I'd like to know as I've been experimenting with building some new ingest pipelines that use some potentially sub-optimal condition statements, and I'm wondering if I can rely on these stats for measuring this.

---

<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:** [September 10, 2023, 8:18pm UTC](https://discuss.elastic.co/t/ingest-pipeline-stats-processor-if-conditional-measurement/340707/2 "2023-09-10T20:18:57Z")

</div>

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