Filebeat postgresql module @timestamp field changed based on timestamp format #9494
Labels
bug
Filebeat
Filebeat
good first issue
Indicates a good issue for first-time contributors
module
Team:Integrations
Label for the Integrations team
Filebeat postgresql module @timestamp field uses current time if timestamp in log doesn't have 3 decimals in seconds. For example, if using log example from #9156 for testing, the output json has current timestamp in @timestamp field instead of the timestamp showed up in log message.
How to reproduce:
Copy and paste the logs shown below into
elastic/beats/filebeat/module/postgresql/log/test/postgresql-9.6-multi-core.log
:Then run
GENERATE=1 INTEGRATION_TESTS=1 TESTING_FILEBEAT_MODULES=postgresql build/python-env/bin/nosetests -v --nocapture tests/system/test_modules.py
and you should see theelastic/beats/filebeat/module/postgresql/log/test/postgresql-9.6-multi-core.log-expected.json
file is updated with current timestamp in @timestamp field.The text was updated successfully, but these errors were encountered: