PingSafe
PingSafe is an industry-leading cloud security platform, which scans your cloud infrastructure from an attacker's lens. Security lapses are identified, prioritized, and auto-remediated to eliminate unwanted business impacts.
This tutorial demonstrates how to undertake the PingSafe integration to Coralogix via webhook using Fluentd, allowing you to seamlessly send us your logs.
Prerequisites
-
Server to install Fluentd
-
Static public IP allocated to the server for initial configuration
-
Active PingSafe account
The webhook is configured to send data to the instance where Fluentd is installed, using the particular port configured in the Fluentd configuration file.
Deployment
Install and configure Fluentd on your server. Additional information can be found here.
Under /etc/td-agent/, edit the configuration file called td-agent.conf and replace the content with the following configuration:
<system>
log_level info
</system>
<source>
@type http
@label @CORALOGIX
port 9880
bind 0.0.0.0
body_size_limit 32m
keepalive_timeout 10s
</source>
<label @CORALOGIX>
<filter **>
@type record_transformer
@log_level warn
enable_ruby true
auto_typecast true
renew_record true
<record>
applicationName "application_name"
subsystemName "subsystem_name"
text ${record.to_json}
</record>
</filter>
<match **>
@type http
@id http_to_coralogix
endpoint "https://api.<span class="domain-value"></span>/logs/rest/singles"
headers {"private_key":"Your Coralogix account private key"}
retryable_response_codes 408, 500, 502, 503, 504, 507
error_response_as_unrecoverable false
<buffer>
@type memory
chunk_limit_size 5MB
compress gzip
flush_interval 1s
retry_max_times 5
retry_type periodic
retry_wait 2
</buffer>
<secondary>
#If any messages fail to send they will be send to STDOUT for debug.
@type stdout
</secondary>
</match>
</label>
Replace the values for:
- applicationName & subsystemName: Application and subsystem names to be displayed in your Coralogix dashboard
- endpoint: Replace
<coralogix domain>
with your Coralogix domain - private_key: Replace with your Coralogix Send-Your-Data API key
Save and configure your td-agent.conf file.
Support
Need help?
Our world-class customer success team is available 24/7 to walk you through your setup and answer any questions that may come up.
Feel free to reach out to us via our in-app chat or by sending us an email at [email protected].