# No field "postgresql.log.level" frome Filebat Posresql module in Kibana

**URL:** <https://discuss.elastic.co/t/no-field-postgresql-log-level-frome-filebat-posresql-module-in-kibana/311725>\
**Category:** Beats\
**Tags:** beats-module, filebeat\
**Created:** [August 9, 2022, 12:31pm UTC](https://discuss.elastic.co/t/no-field-postgresql-log-level-frome-filebat-posresql-module-in-kibana/311725 "2022-08-09T12:31:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sadux](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sadux/32/96568_2.png) [@sadux](https://discuss.elastic.co/u/sadux)\
**Post date:** [August 9, 2022, 12:31pm UTC](https://discuss.elastic.co/t/no-field-postgresql-log-level-frome-filebat-posresql-module-in-kibana/311725/1 "2022-08-09T12:31:50Z")

</div>

Hello! Just install filebeat (7.15.1)+postgresql module.  
filebeat.yml:

```auto
output.logstash:
  hosts: ["logstash.test.com:5001","logstash2.test.com:5001"]
  loadbalance: true

fields:
  env: prod
  host_type: postgresql

fields_under_root: True

name: psql-prod1.test.com

logging.level: info
logging.to_files: true
logging.files:
  path: /var/log/filebeat
  name: filebeat
  keepfiles: 14
  permissions: 0644

filebeat.config.modules:
  path: ${path.config}/modules.d/*.yml

```

filebeat/modules.d/posgresql.yml:

```auto
# Module: postgresql
# Docs: https://www.elastic.co/guide/en/beats/filebeat/7.x/filebeat-module-postgresql.html

- module: postgresql
  # All logs
  log:
    enabled: true

    # Set custom paths for the log files. If left empty,
    # Filebeat will choose the paths depending on your OS.
    var.paths: ["/var/lib/pgsql/*/com/log/*.log*"]

```

I can see logs in Kibana, but there are no field log.level, but in message field I see FATAL, LOG, INFO and another levels. How I can move it in log.level field?

---

<div class="post-metadata">

**Author:** ![Tetiana\_Kravchenko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tetiana_kravchenko/32/102683_2.png) [@Tetiana\_Kravchenko](https://discuss.elastic.co/u/Tetiana_Kravchenko)\
**Post date:** [August 17, 2022, 2:23pm UTC](https://discuss.elastic.co/t/no-field-postgresql-log-level-frome-filebat-posresql-module-in-kibana/311725/2 "2022-08-17T14:23:48Z")

</div>

Hi @sadux

Here is a [grok pattern](https://github.com/elastic/beats/blob/main/filebeat/module/postgresql/log/ingest/pipeline-log.yml#L7) used to parse logs, might be that logs format does not math this patter.

---

<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 14, 2022, 4:24pm UTC](https://discuss.elastic.co/t/no-field-postgresql-log-level-frome-filebat-posresql-module-in-kibana/311725/3 "2022-09-14T16:24:20Z")

</div>

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