@@ -20,7 +20,7 @@ func TestLoadConfig(t *testing.T) {
2020 "default" : {
2121 want : Config {
2222 Site : "datadoghq.com" ,
23- IntakeURL : "https://http-intake.logs.datadoghq.com" ,
23+ IntakeURL : "https://http-intake.logs.datadoghq.com/api/v2/logs " ,
2424 APIURL : "https://api.datadoghq.com" ,
2525 LogLevel : "INFO" ,
2626 UseFIPS : false ,
@@ -30,7 +30,7 @@ func TestLoadConfig(t *testing.T) {
3030 env : map [string ]string {"DD_SITE" : "datadoghq.eu" },
3131 want : Config {
3232 Site : "datadoghq.eu" ,
33- IntakeURL : "https://http-intake.logs.datadoghq.eu" ,
33+ IntakeURL : "https://http-intake.logs.datadoghq.eu/api/v2/logs " ,
3434 APIURL : "https://api.datadoghq.eu" ,
3535 LogLevel : "INFO" ,
3636 },
@@ -55,7 +55,7 @@ func TestLoadConfig(t *testing.T) {
5555 },
5656 want : Config {
5757 Site : "datadoghq.com" ,
58- IntakeURL : "https://http-intake.logs.datadoghq.com" ,
58+ IntakeURL : "https://http-intake.logs.datadoghq.com/api/v2/logs " ,
5959 APIURL : "https://api.datadoghq.com" ,
6060 LogLevel : "INFO" ,
6161 Source : "custom-source" ,
@@ -67,7 +67,7 @@ func TestLoadConfig(t *testing.T) {
6767 env : map [string ]string {"REDACT_IP" : "true" },
6868 want : Config {
6969 Site : "datadoghq.com" ,
70- IntakeURL : "https://http-intake.logs.datadoghq.com" ,
70+ IntakeURL : "https://http-intake.logs.datadoghq.com/api/v2/logs " ,
7171 APIURL : "https://api.datadoghq.com" ,
7272 LogLevel : "INFO" ,
7373 Scrubbing : ScrubbingConfig {ScrubIP : true },
@@ -80,7 +80,7 @@ func TestLoadConfig(t *testing.T) {
8080 },
8181 want : Config {
8282 Site : "datadoghq.com" ,
83- IntakeURL : "https://http-intake.logs.datadoghq.com" ,
83+ IntakeURL : "https://http-intake.logs.datadoghq.com/api/v2/logs " ,
8484 APIURL : "https://api.datadoghq.com" ,
8585 LogLevel : "INFO" ,
8686 Scrubbing : ScrubbingConfig {CustomRule : `\d+` , CustomReplacement : "X" },
@@ -90,7 +90,7 @@ func TestLoadConfig(t *testing.T) {
9090 env : map [string ]string {"INCLUDE_AT_MATCH" : `error|warn` },
9191 want : Config {
9292 Site : "datadoghq.com" ,
93- IntakeURL : "https://http-intake.logs.datadoghq.com" ,
93+ IntakeURL : "https://http-intake.logs.datadoghq.com/api/v2/logs " ,
9494 APIURL : "https://api.datadoghq.com" ,
9595 LogLevel : "INFO" ,
9696 Filtering : FilteringConfig {IncludePattern : `error|warn` },
@@ -100,7 +100,7 @@ func TestLoadConfig(t *testing.T) {
100100 env : map [string ]string {"EXCLUDE_AT_MATCH" : `DEBUG` },
101101 want : Config {
102102 Site : "datadoghq.com" ,
103- IntakeURL : "https://http-intake.logs.datadoghq.com" ,
103+ IntakeURL : "https://http-intake.logs.datadoghq.com/api/v2/logs " ,
104104 APIURL : "https://api.datadoghq.com" ,
105105 LogLevel : "INFO" ,
106106 Filtering : FilteringConfig {ExcludePattern : `DEBUG` },
0 commit comments