My td-agent works fine when i run it manually but when i run td-agent as a service i get the following error.
2018-04-17 23:54:20 +0000 [warn]: #0 failed to flush the buffer. retry_time=2 next_retry_seconds=2018-04-17 23:54:22 +0000 chunk="56a140ac4c67bdff295da862cc521fe5" error_class=Seahorse::Client::NetworkingError error="execution expired"
<source>
@type tail
format apache
read_from_head true
path /data/access.log
# pos_file /data/access.log.pos
tag access.log
</source>
<filter access.lo>
@type record_transformer
<record>
log access.log
</record>
</filter>
<match access.log>
# plugin type
@type kinesis_streams
# your kinesis stream name
stream_name mielkdev
# AWS credentials
aws_key_id **************************************
aws_sec_key **************************************
# AWS region
region us-east-1
# Use random value for the partition key
random_partition_key true
<buffer>
# Frequency of ingestion
flush_interval 3s
# Parallelism of ingestion
flush_thread_count 4
# num_threads
num_threads 15
buffer_chunk_limit 2096
buffer_queue_limit 1024m
chunk_limit_size 12g
queue_limit_length 96
buffer_type memory
</buffer>
</match>