<commit_before>---
layout: post
title: "How to setup up logroate with aws s3"
date: 2017-04-09 20:09:18
image: '/assets/img/'
description: This is a tutorial explain how to rotate files and upload back them up in a S3 bucket.
comments: true
tags:
- logrotate
- AWS s3
- linux ubuntu
- ubuntu logrotate 
- centralized logging 
categories:
- aws
twitter_text:
---

## What I m trying to do

Rotate my logs everyday at midnight, archive the rotated files. then upload them to an S3 bucket.
all archived files on S3 will be referenced with a timestamp, to make the search process easy<commit_msg>add image to post<commit_after>---
layout: post
title: "How to setup up logroate with aws s3"
date: 2017-04-09 20:09:18
image: '/assets/img/postlogroate-aws.jpg'
description: This is a tutorial explain how to rotate files and upload back them up in a S3 bucket.
comments: true
tags:
- logrotate
- AWS s3
- linux ubuntu
- ubuntu logrotate 
- centralized logging 
categories:
- aws
twitter_text:
---

## What I m trying to do

Rotate my logs everyday at midnight, archive the rotated files. then upload them to an S3 bucket.
all archived files on S3 will be referenced with a timestamp, to make the search process easy
{'fraction_non_alphanumeric': 0.07119205298013245, 'fraction_numerical': 0.03145695364238411, 'mean_word_length': 3.836, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '933634', 'n_tokens_mistral': 393, 'n_tokens_neox': 358, 'n_words': 184}