Commit 3b4b9463 authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

software/selenium_client: add pos files for tail plugin

Use position files for Fluentd tail plugin to avoid sending data twice
when Fluentd service is restarted.
parent 2f9c8f76
...@@ -14,4 +14,4 @@ ...@@ -14,4 +14,4 @@
# not need these here). # not need these here).
[instance-selenium] [instance-selenium]
filename = instance.cfg filename = instance.cfg
md5sum = e9414172af42c1e8a483286716ed7370 md5sum = 80c32e1a77cfab9e6df77fd4c145deeb
...@@ -17,6 +17,7 @@ context = ...@@ -17,6 +17,7 @@ context =
key slapparameter_dict slap-configuration:configuration key slapparameter_dict slap-configuration:configuration
key simulation_log_dir directory:simulation-log-dir key simulation_log_dir directory:simulation-log-dir
key flight_log_dir directory:flight-log-dir key flight_log_dir directory:flight-log-dir
key tmp_dir directory:tmp
inline = inline =
{% set wendelin_url = slapparameter_dict.get('wendelin-url', '') -%} {% set wendelin_url = slapparameter_dict.get('wendelin-url', '') -%}
{% set wendelin_user = slapparameter_dict.get('wendelin-user', '') -%} {% set wendelin_user = slapparameter_dict.get('wendelin-user', '') -%}
...@@ -27,6 +28,7 @@ inline = ...@@ -27,6 +28,7 @@ inline =
@type tail @type tail
read_from_head true read_from_head true
path {{ simulation_log_dir }}/*.log path {{ simulation_log_dir }}/*.log
pos_file {{ tmp_dir }}/drone_simulation.pos
tag drone_simulation.sample-drone-raw-data tag drone_simulation.sample-drone-raw-data
format none format none
path_key filepath path_key filepath
...@@ -48,6 +50,7 @@ inline = ...@@ -48,6 +50,7 @@ inline =
@type tail @type tail
read_from_head true read_from_head true
path {{ flight_log_dir }}/*.log path {{ flight_log_dir }}/*.log
pos_file {{ tmp_dir }}/drone_real.pos
tag drone_real.bouncy_flight_mavsdk_raw_data tag drone_real.bouncy_flight_mavsdk_raw_data
format none format none
path_key filepath path_key filepath
...@@ -66,6 +69,7 @@ inline = ...@@ -66,6 +69,7 @@ inline =
</match> </match>
[directory] [directory]
tmp = $${:home}/tmp
simulation-log-dir = $${:etc}/simulation_log_dir simulation-log-dir = $${:etc}/simulation_log_dir
flight-log-dir = $${:etc}/flight_log_dir flight-log-dir = $${:etc}/flight_log_dir
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment