Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Commit d9d3a3e

Browse files
committed
KIT-454 modified logged fields: added path, removed version
1 parent c116203 commit d9d3a3e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

logstash_async/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This software may be modified and distributed under the terms
44
# of the MIT license. See the LICENSE file for details.
55

6-
__version__ = '2.1.0'
6+
__version__ = '2.1.1'
77

88
# When using an in-memory only cache, this persists the cache through
99
# thread failures, shutdowns, and restarts.

logstash_async/formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ def _prefetch_program_name(self):
7474
def format(self, record):
7575
message = {
7676
'@timestamp': self._format_timestamp(record.created),
77-
'@version': '1',
7877
'host': self._host,
7978
'level': record.levelname,
8079
'logsource': self._logsource,
8180
'message': record.getMessage(),
81+
'path': record.pathname,
8282
'process_id': record.process,
8383
'program': self._program_name,
8484
'type': self._message_type,

0 commit comments

Comments
 (0)