This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"component": "wrap", | |
"definitions": { | |
"cloudwatch_group_name": "2x-debug-10-27-" | |
}, | |
"config": { | |
"wrapper": { | |
"name": "fluent-bit-executor", | |
"config": { | |
"fluentConfigFile": "./data/data-public/fluent-config/fluent-bit.conf", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread 7 (Thread 0x7f349ffff700 (LWP 14423)): | |
#0 0x00007f34b1be68ac in epoll_wait (epfd=58, events=0x7f34a85aebe0, maxevents=64, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 | |
resultvar = 18446744073709551612 | |
sc_cancel_oldtype = 0 | |
#1 0x000000000078208e in _mk_event_wait (loop=0x7f34a85a9570) at /app/workspace/fluent-bit/lib/monkey/mk_core/mk_event_epoll.c:393 | |
ctx = 0x7f34a85ab270 | |
#2 0x00000000007823f1 in mk_event_wait (loop=0x7f34a85a9570) at /app/workspace/fluent-bit/lib/monkey/mk_core/mk_event.c:184 | |
No locals. | |
#3 0x000000000045571b in output_thread (data=0x7f34a85ae8e0) at /app/workspace/fluent-bit/src/flb_output_thread.c:248 | |
__i = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread 7 (Thread 0xffff857bfde0 (LWP 10391)): | |
#0 0x0000ffff8d6cdfd4 in __lll_lock_wait_private (futex=futex@entry=0xffff8d770318 <lock>) at ./lowlevellock.c:33 | |
_x3tmp = <optimized out> | |
_x0tmp = <optimized out> | |
_x0 = 281473055130392 | |
_x3 = 0 | |
_x1tmp = <optimized out> | |
_x1 = 128 | |
_x2tmp = <optimized out> | |
_x2 = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread 7 (Thread 0xffff857bfde0 (LWP 10391)): | |
#0 0x0000ffff8dca7c28 in __libc_read (fd=<optimized out>, buf=buf@entry=0xffff70093663, nbytes=nbytes@entry=5) at ../sysdeps/unix/sysv/linux/read.c:26 | |
_x2tmp = 5 | |
_x0tmp = <optimized out> | |
_x0 = 86 | |
_x2 = 5 | |
_x8 = 63 | |
_x1tmp = 281472561395299 | |
_x1 = 281472561395299 | |
_sys_result = <optimized out> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[SERVICE] | |
# See: | |
# https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html | |
# https://github.com/aws-samples/amazon-ecs-firelens-under-the-hood/tree/master/generated-configs/fluent-bit | |
Flush 10 | |
Grace 30 | |
Log_Level info | |
[INPUT] | |
Name tcp | |
Tag TCP_A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function AorB (event) { | |
try { | |
console.log(JSON.stringify(event)); | |
} catch { | |
// no-op | |
} | |
let response = new Twilio.Response(); | |
response.setStatusCode(200); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function log (data, message) { | |
try { | |
if (data && data.debug) { | |
console.log(message); | |
} | |
} catch (error) { | |
console.log(`Encountered error logging: ${error.message}`); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.handler = function(context, event, callback) { | |
let path = Runtime.getFunctions()['function_name'].path; | |
let fn = require(path); | |
fn.handler(context, event, (error, response) => { | |
if (error) { | |
console.log(error); | |
// handle error case | |
} else { | |
console.log(response); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.handler = function(context, event, callback) { | |
const response = new Twilio.Response(); | |
response.appendHeader('Access-Control-Allow-Origin', '*'); | |
response.appendHeader('Access-Control-Allow-Methods', 'GET, OPTIONS, PUT, POST, DELETE'); | |
response.appendHeader('Access-Control-Allow-Headers', 'Content-Type'); | |
// check if the event has any data and if not assume this is the OPTIONS request | |
if (Object.keys(event).length === 0) { | |
response.setStatusCode(200); | |
callback(null, response); |