Skip to content

Max Log Length and S3 Object Path #89

Answered by jshlbrd
Bin-security asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Bin-security 👋

It seems that substation uses the default bufio.Buffer size which is 64K and truncate the logs if they exceed the size. Is there a configuration that I can change to support long log lines?

That's correct, by default the project uses the same configuration as the bufio package. We use environment variables to control runtime settings, the variable you'll need to configure is SUBSTATION_SCAN_CAPACITY. Internally at Brex we use a scan capacity of 256000000 (256MB) for CloudTrail logs. One thing to keep in mind is that this scan capacity will impact how much memory the Lambda uses, so you'll need to increase that as well otherwise you'll see out of memory errors.

Do you…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@Bin-security
Comment options

@jshlbrd
Comment options

@Bin-security
Comment options

@chencaoverkada
Comment options

@jshlbrd
Comment options

Answer selected by jshlbrd
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants