# Cloudtrail codec error after new release

**URL:** <https://discuss.elastic.co/t/cloudtrail-codec-error-after-new-release/70478>\
**Category:** Logstash\
**Created:** [January 3, 2017, 8:05pm UTC](https://discuss.elastic.co/t/cloudtrail-codec-error-after-new-release/70478 "2017-01-03T20:05:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh\_A](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/josh_a/32/42035_2.png) [@Josh\_A](https://discuss.elastic.co/u/Josh_A)\
**Post date:** [January 3, 2017, 8:05pm UTC](https://discuss.elastic.co/t/cloudtrail-codec-error-after-new-release/70478/1 "2017-01-03T20:05:39Z")

</div>

Hi - I just downloaded and installed the newly-released cloudtrail codec. Command to install was:  
./bin/logstash-plugin install logstash-codec-cloudtrail

The only change I made in my .conf file was to go from "json" codec to "cloudtrail" codec in input. The pipeline that was working previous is now broken.

Here are the errors I receive over and over:

> ```
> 20:02:42.044 [[main]<s3] ERROR logstash.pipeline - A plugin had an unrecoverable error. Will restart this plugin.
> Plugin: <LogStash::Inputs::S3 bucket=>"redacted", access_key_id=>"redacted", secret_access_key=>"redacted", codec=><LogStash::Codecs::CloudTrail id=>"cloudtrail_82d45f40-1490-457e-9407-47d1411e533b", enable_metric=>true, charset=>"UTF-8">, region=>"us-west-2", id=>"redacted", enable_metric=>true, delete=>false, interval=>60, temporary_directory=>"/tmp/logstash">
> 
> ```

Operating system: ubuntu 16.04  
Elasticsearch version: 5.1.1

Here's my .conf file:

> input {  
> s3 {  
> bucket =\> 'redacted'  
> access\_key\_id =\> 'redacted'  
> secret\_access\_key =\> 'redacted'  
> codec =\> "cloudtrail"  
> region =\> "us-west-2"  
> }  
> }

> filter {  
> geoip {  
> source =\> "sourceIPAddress"  
> }  
> }

> output {  
> elasticsearch {  
> hosts =\> "redacted:9243"  
> user =\> "redacted"  
> password =\> "redacted"  
> ssl =\> true  
> index =\> "redacted-%{+YYYY.MM.dd}"  
> document\_type =\> "redacted"  
> }  
> }

Any idea what I'm doing wrong?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Josh\_A](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/josh_a/32/42035_2.png) [@Josh\_A](https://discuss.elastic.co/u/Josh_A)\
**Post date:** [January 6, 2017, 3:56pm UTC](https://discuss.elastic.co/t/cloudtrail-codec-error-after-new-release/70478/2 "2017-01-06T15:56:06Z")

</div>

Adding a comment to bump this up, hoping someone can point me in the right direction if this isn't the right place to get help on this?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 3, 2017, 3:56pm UTC](https://discuss.elastic.co/t/cloudtrail-codec-error-after-new-release/70478/3 "2017-02-03T15:56:13Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
