Datadog via Fluentd/Logstash¶
Wallarm'ı, Fluentd veya Logstash ara veri toplayıcısı aracılığıyla tespit edilen olayların bildirimlerini Datadog'a gönderecek şekilde yapılandırabilirsiniz.
The most common logging scheme in complex systems consists of the following components:
-
Data collector: accepts logs from several sources and forwards logs to the SIEM system
-
SIEM system or log management systems: used to analyze logs and monitor the system status
Native integration with Datadog
Wallarm ayrıca, Datadog API aracılığıyla native integration with Datadog desteği sunmaktadır. Yerel entegrasyon, ara veri toplayıcısının kullanılmasını gerektirmez.
Used resources¶
-
Genel URL'de bulunan Fluentd veya Logstash servisi
-
Genel URL'de bulunan Datadog servisi
-
Wallarm Console'da EU cloud üzerinde yönetici erişimi ile Fluentd/Logstash integration yapılandırması
Wallarm Cloud IP addresses
To provide Wallarm Cloud access to your system, you may need a list of its public IP addresses:
Requirements¶
Wallarm, webhooks aracılığıyla ara veri toplayıcısına günlük gönderdiğinden, Fluentd veya Logstash yapılandırmasının aşağıdaki gereksinimleri karşılaması gerekir:
-
POST veya PUT isteklerini kabul etmek
-
HTTPS isteklerini kabul etmek
-
Genel bir URL'ye sahip olmak
-
Günlükleri Datadog'a
datadog_logs
Logstash eklentisi veyafluent-plugin-datadog
Fluentd eklentisi aracılığıyla iletmek
- Datadog'a günlük iletmek için datadog_logs eklentisini yükleyin.
- Gelen istekleri okuyacak ve günlükleri Datadog'a yönlendirecek şekilde Logstash'ı yapılandırın.
The logstash-sample.conf
configuration file example:
- Datadog'a günlük iletmek için fluent-plugin-datadog eklentisini yükleyin.
- Gelen istekleri okuyacak ve günlükleri Datadog'a yönlendirecek şekilde Fluentd'i yapılandırın.
The td-agent.conf
configuration file example:
Setting up integration with Fluentd or Logstash¶
-
Wallarm Console'da Integrations → Fluentd/Logstash bölümüne giderek Datadog entegrasyon kurulumuna devam edin.
-
Entegrasyon adını girin.
-
Hedef Fluentd veya Logstash URL'sini (Webhook URL) belirtin.
-
Gerekirse, gelişmiş ayarları yapılandırın:
- Request method:
POST
orPUT
. By default, POST requests are sent. - Request header and its value if the server requires a non-standard header to execute the request. The number of headers is not limited.
- CA certificate: certificate of CA that signed a server certificate. If CA is publicly trusted, this field is optional. If a server certificate is self-signed, this field is required and must contain a certificate of your own CA that signed a server certificate.
- Verify TLS certificate: this setting allows to disable verification of the specified server certificate. By default, Wallarm verifies whether a server certificate is signed by a publicly trusted CA. We do not recommend disabling the verification of production server certificates. If your server uses a self-signed TLS certificate, you can add a self-signed CA certificate to allow sending requests to this server.
- Request timeout, in seconds: if the server does not respond to the request within the specified time, the request fails. By default: 15 seconds.
- Connection timeout, in seconds: if the connection to the server cannot be established during the specified time, the request fails. By default: 20 seconds.
- Wallarm data format: either a JSON Array (default) or a New Line Delimited JSON (NDJSON).
- Request method:
-
Belirtilen URL'ye bildirim gönderimini tetikleyecek olay türlerini seçin. Olaylar seçilmezse bildirim gönderilmeyecektir.
-
Entegrasyonu test edin ve ayarların doğru olduğundan emin olun.
-
Add integration butonuna tıklayın.
Fluentd integration example:
Testing integration¶
Integration testing allows checking configuration correctness, availability of the Wallarm Cloud, and the notification format. To test the integration, you can use the button Test integration when creating or editing the integration.
The integration is tested as follows:
-
Test notifications with the prefix
[Test message]
are sent to the selected system. -
Test notifications cover the following events (each in a single record):
- New user in the company account
- Newly detected hit
- Newly discovered IP in the company scope
- New trigger in the company account
- Newly discovered security vulnerability
-
Test notifications include test data.
Fluentd veya Logstash ara veri toplayıcısındaki test günlüğü:
[
{
summary:"[Test message] [Test partner(US)] New vulnerability detected",
description:"Notification type: vuln
New vulnerability was detected in your system.
ID:
Title: Test
Domain: example.com
Path:
Method:
Discovered by:
Parameter:
Type: Info
Threat: Medium
More details: https://us1.my.wallarm.com/object/555
Client: TestCompany
Cloud: US
",
details:{
client_name:"TestCompany",
cloud:"US",
notification_type:"vuln",
vuln_link:"https://us1.my.wallarm.com/object/555",
vuln:{
domain:"example.com",
id:null,
method:null,
parameter:null,
path:null,
title:"Test",
discovered_by:null,
threat:"Medium",
type:"Info"
}
}
}
]
Test Datadog log:
Diğer kayıtlar arasında Wallarm günlüklerini bulmak için Datadog Logs hizmetinde source:wallarm_cloud
arama etiketini kullanabilirsiniz.