File tree 3 files changed +4
-3
lines changed
backend/src/suricata_setup/gcp-services 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -840,8 +840,7 @@ export async function push_files({
840
840
id,
841
841
instance_url,
842
842
...rest
843
- } : RESPONSE [ "data" ] ) : Promise < RESPONSE > {
844
- const endpoint = "api/v1/log-request/single"
843
+ } : RESPONSE [ "data" ] ) : Promise < RESPONSE > {
845
844
const instance_name = instance_url . split ( "/" ) . at ( - 1 )
846
845
let [ key , raw ] = createApiKey ( `Metlo-collector-${ id } ` )
847
846
key . for = API_KEY_TYPE . GCP
@@ -863,7 +862,7 @@ export async function push_files({
863
862
864
863
put_data_file (
865
864
format ( filepath_ingestor_in , [
866
- `${ process . env . BACKEND_URL } / ${ endpoint } ` ,
865
+ `${ process . env . BACKEND_URL } ` ,
867
866
raw ,
868
867
] ) ,
869
868
filepath_ingestor_out ,
Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ export interface RESPONSE {
119
119
sourcePort : number
120
120
destination : string
121
121
destinationPort : number
122
+ metloSource : string ,
122
123
}
123
124
}
124
125
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ export function prepareResponse(
89
89
sourcePort : alert . src_port ,
90
90
destination : alert . dest_ip ,
91
91
destinationPort : alert . dest_port ,
92
+ metloSource : "suricata"
92
93
} ,
93
94
}
94
95
return resp
You can’t perform that action at this time.
0 commit comments