Grok processor is not applied for indexed records in elastic search

I am using the filebeat for indexing the records in elastic search. and I wanted to modify the index field so I added a pattern using ingest pipeline and gork.
The records are getting indexed but the processing of pipeline is not happening. What could be the reason?

I have verified the processing pipeline is added.

What does the pipeline look like? What does your filebeat config look like?