Bug 1459431

Summary: Add pos_file parameter to the in_tail plugin for engine.log records
Product: [oVirt] ovirt-engine-metrics Reporter: Shirly Radco <sradco>
Component: GenericAssignee: Shirly Radco <sradco>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Svaty <lsvaty>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.0.3CC: bugs, lsvaty, pstehlik, stirabos
Target Milestone: ovirt-4.1.4Flags: rule-engine: ovirt-4.1+
lsvaty: testing_ack+
Target Release: 1.0.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-28 14:14:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Metrics RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1402901, 1468892    

Description Shirly Radco 2017-06-07 07:01:12 UTC
Description of problem:
in_tail plugin that tails the engine.log records requires additional parameter, pos_file. Fluentd will record the position it last read into the file in the specified path.

Version-Release number of selected component (if applicable):
1.0.3

How reproducible:
100%

Steps to Reproduce:
1. Setup openshift+logging
2. Install engine and deploy the metrics ansible script
3. Check the file exists at /var/log/fluentd/ovirt-engine.log.pos

Comment 1 Lukas Svaty 2017-07-18 16:21:42 UTC
[root@ls-engine1 ~]# cat /var/lib/ovirt-fluentd/pos-files/ovirt-engine.log.pos
/var/log/ovirt-engine/engine.log	00000000008036cd	000000000129dbf6

verified in ovirt-engine-metrics-1.0.5-1.el7ev.noarch