# S3-input-plugin; restart logstash on aws\_credentials\_file update

**URL:** <https://discuss.elastic.co/t/s3-input-plugin-restart-logstash-on-aws-credentials-file-update/287036>\
**Category:** Logstash\
**Created:** [October 19, 2021, 12:05am UTC](https://discuss.elastic.co/t/s3-input-plugin-restart-logstash-on-aws-credentials-file-update/287036 "2021-10-19T00:05:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jnkroeker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jnkroeker/32/96049_2.png) [@jnkroeker](https://discuss.elastic.co/u/jnkroeker)\
**Post date:** [October 19, 2021, 12:05am UTC](https://discuss.elastic.co/t/s3-input-plugin-restart-logstash-on-aws-credentials-file-update/287036/1 "2021-10-19T00:05:50Z")

</div>

Hey there,

How can I force logstash to restart when my aws\_credentials\_file is updated?  
`--config.reload.automatic` does not appear to work here as neither the config.yaml or pipelines.yaml files are changing. the aws\_credentials\_file variable is specified in my pipeline.conf only.

Kindly,

John

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [October 19, 2021, 1:40am UTC](https://discuss.elastic.co/t/s3-input-plugin-restart-logstash-on-aws-credentials-file-update/287036/2 "2021-10-19T01:40:27Z")

</div>

It won't work like that, the auto reload will only trigger when you edit the pipelines config files or the `pipelines.yml` file, editing any other file will not trigger a reload.

If you want to reload your pipeline when you change the `aws_credentials_file` you will also need to edit the pipeline configuration that makes reference to this file, any change is enough to trigger a reload.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [October 19, 2021, 2:07am UTC](https://discuss.elastic.co/t/s3-input-plugin-restart-logstash-on-aws-credentials-file-update/287036/3 "2021-10-19T02:07:49Z")

</div>

You will need to do this externally to logstash. Note that updating pipelines.yml may work (I haven't checked for that file but I know appending a blank line is enough of a change to a pipeline configuration to trigger a reload), but if you are scripting this outside of logstash you can also just send it a SIGHUP and leave the configuration alone.

---

<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:** [November 16, 2021, 2:08am UTC](https://discuss.elastic.co/t/s3-input-plugin-restart-logstash-on-aws-credentials-file-update/287036/4 "2021-11-16T02:08:42Z")

</div>

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