# PingSafe

Copy as Markdown[Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs-docusaurus.kinsta.page%2Fuser-guides%2Fsecurity%2Fsecurity-data-sources%2Fpingsafe.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fdocs-docusaurus.kinsta.page%2Fuser-guides%2Fsecurity%2Fsecurity-data-sources%2Fpingsafe.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)

[PingSafe](https://www.pingsafe.com/) 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](https://docs-docusaurus.kinsta.page/integrations/files/fluentd/.md), allowing you to seamlessly send us your logs.

## Prerequisites[​](#prerequisites "Direct link to Prerequisites")

1. Server to install [Fluentd](https://docs-docusaurus.kinsta.page/integrations/files/fluentd/.md)

2. Static public IP allocated to the server for initial configuration

3. 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[​](#deployment "Direct link to Deployment")

1

<!-- -->

.

[Install and configure](https://docs-docusaurus.kinsta.page/integrations/files/fluentd/.md) Fluentd on your server. Additional information can be found [here](https://docs.fluentd.org/installation).

2

<!-- -->

.

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://ingress.eu2.coralogix.com/logs/v1/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](https://docs-docusaurus.kinsta.page/user-guides/account-management/account-settings/application-and-subsystem-names/.md) to be displayed in your Coralogix dashboard
* endpoint: Replace `<coralogix domain>` with your Coralogix [domain](https://docs-docusaurus.kinsta.page/user-guides/account-management/account-settings/coralogix-domain/.md)
* private\_key: Replace with your Coralogix [Send-Your-Data API key](https://docs-docusaurus.kinsta.page/user-guides/account-management/api-keys/send-your-data-api-key/.md)

Save and configure your **td-agent.conf** file.

3

<!-- -->

.

Test the configuration:

```
td-agent --dry-run
```

4

<!-- -->

.

Start the **td-agent** service:

```
sudo systemctl start td-agent.service
```

5

<!-- -->

.

Check the status:

```
sudo systemctl status td-agent.service
```

6

<!-- -->

.

To test the full flow, run this curl command:

```
curl --header "Content-Type: application/json" \

  --request POST \

  --data '{"example_key":"example_value"}' \

 http://<ip of the server>:9880
```

## Additional resources[​](#additional-resources "Direct link to Additional resources")

|                     |                                                                                                 |
| ------------------- | ----------------------------------------------------------------------------------------------- |
| Coralogix Endpoints | [Coralogix Endpoints](https://docs-docusaurus.kinsta.page/integrations/coralogix-endpoints/.md) |
