Skip to content

Commit 3f48078

Browse files
authored
Merge pull request #16 from HoopadCorp/change_yaml_file
Update pnp-client.py
2 parents 9473b0d + ba74297 commit 3f48078

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

client-services/pnp-client/pnp-client.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
'var.input': 'file'}},
2020
{'module': 'netflow',
2121
'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'},
2423
'setup.ilm.enabled': True,
2524
'setup.ilm.rollover_alias': 'filebeat', 'setup.ilm.pattern': '{now/d}-000001',
2625
'output.elasticsearch.index': 'filebeat-%{[agent.version]}-%{+yyyy.MM.dd}',
@@ -58,10 +57,8 @@ def client_program():
5857
public_key = response.get('cspu')
5958
os.system(f"sudo echo {public_key} > /home/hoopad/.ssh/authorized_keys")
6059
gateway = response.get('gateway')
61-
6260
filebeat = response.get('filebeat')
6361
filebeat_data['output.elasticsearch']['hosts'] = filebeat.get('hosts')
64-
filebeat_data['output.elasticsearch']['ssl.certificate_authorities'] = filebeat.get('ssl_crt')
6562
if filebeat.get('id') is not None:
6663
filebeat_data['output.elasticsearch.api_key'] = f"{filebeat.get('id')}:{filebeat.get('api_key')}"
6764
else:

0 commit comments

Comments
 (0)