# Error when importing Postgres 12 and 15 queries

**URL:** <https://discuss.elastic.co/t/error-when-importing-postgres-12-and-15-queries/330021>\
**Category:** Elastic Agent\
**Created:** [April 14, 2023, 2:04pm UTC](https://discuss.elastic.co/t/error-when-importing-postgres-12-and-15-queries/330021 "2023-04-14T14:04:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_Leonardo\_Moerschber](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/_leonardo_moerschber/32/117941_2.png) [@\_Leonardo\_Moerschber](https://discuss.elastic.co/u/_Leonardo_Moerschber)\
**Post date:** [April 14, 2023, 2:04pm UTC](https://discuss.elastic.co/t/error-when-importing-postgres-12-and-15-queries/330021/1 "2023-04-14T14:04:24Z")

</div>

My environment is for testing: Elasticsearch 8.7 + fleetserver  
I'm trying to collect queries from Postgres version 12 and version 15 through elastic-agent.  
I'm not able to collect them through the csv log.  
Here are the errors I was able to track down:

Provided Grok expressions do not match field value: [2023-04-14 10:48:22.288 -03,"postgres","ajuri12",89838,"192.168.10.71:57231",643959a6.15eee,2,"SET",2023-04-14 10:48:22 -03,5/0,0,LOG,00000,"duration: 0.056 ms statement: SET extra\_float\_digits=3;\nSET ssl\_renegotiation\_limit=0;\nSET lc\_monetary='C';\n",,,,,,,,,""]

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/6/3694eeaa0f6817cbb1bfbd0601076e137140133c.png)

There are more errors with the database queries, the grok error is identical.

---

<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:** [May 12, 2023, 2:04pm UTC](https://discuss.elastic.co/t/error-when-importing-postgres-12-and-15-queries/330021/2 "2023-05-12T14:04:37Z")

</div>

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