File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
client-services/pnp-client Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 19
19
'var.input' : 'file' }},
20
20
{'module' : 'netflow' ,
21
21
'log' : {'enabled' : True , 'var' : {'netflow_host' : '0.0.0.0' , 'netflow_port' : 2055 }}}],
22
- 'output.elasticsearch' : {
23
- 'ssl.certificate_authorities' : ['/usr/local/share/ca-certificates/WANPAD.crt' ], 'hosts' : 'ENV_ME' },
22
+ 'output.elasticsearch' : {'hosts' : 'ENV_ME' },
24
23
'setup.ilm.enabled' : True ,
25
24
'setup.ilm.rollover_alias' : 'filebeat' , 'setup.ilm.pattern' : '{now/d}-000001' ,
26
25
'output.elasticsearch.index' : 'filebeat-%{[agent.version]}-%{+yyyy.MM.dd}' ,
@@ -58,10 +57,8 @@ def client_program():
58
57
public_key = response .get ('cspu' )
59
58
os .system (f"sudo echo { public_key } > /home/hoopad/.ssh/authorized_keys" )
60
59
gateway = response .get ('gateway' )
61
-
62
60
filebeat = response .get ('filebeat' )
63
61
filebeat_data ['output.elasticsearch' ]['hosts' ] = filebeat .get ('hosts' )
64
- filebeat_data ['output.elasticsearch' ]['ssl.certificate_authorities' ] = filebeat .get ('ssl_crt' )
65
62
if filebeat .get ('id' ) is not None :
66
63
filebeat_data ['output.elasticsearch.api_key' ] = f"{ filebeat .get ('id' )} :{ filebeat .get ('api_key' )} "
67
64
else :
You can’t perform that action at this time.
0 commit comments