Skip to content

Commit f73db17

Browse files
authored
Merge pull request #37 from DataDog/tristan/logs
[Logs] Update endpoint for logs-submitter lambda function
2 parents 2d3779c + 4dd76c2 commit f73db17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Log/lambda_function.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
}
3333

3434

35-
host = "intake.logs.datadoghq.com"
35+
host = "lambda-intake.logs.datadoghq.com"
3636
ssl_port = 10516
3737
cloudtrail_regex = re.compile('\d+_CloudTrail_\w{2}-\w{4,9}-\d_\d{8}T\d{4}Z.+.json.gz$', re.I)
3838

@@ -108,7 +108,7 @@ def parse_event_type(event):
108108

109109
elif "awslogs" in event:
110110
return "awslogs"
111-
111+
112112
elif "detail" in event:
113113
return "events"
114114
raise Exception("Event type not supported (see #Event supported section)")
@@ -182,9 +182,9 @@ def awslogs_handler(event):
182182

183183
#Handle Cloudwatch Events
184184
def cwevent_handler(event):
185-
185+
186186
data = event
187-
187+
188188
#Set the source on the log
189189
source = data.get("source", "cloudwatch")
190190
service = source.split(".")

0 commit comments

Comments
 (0)