# Testing Logstash Custom Conf file with Custom File Input

**URL:** https://discuss.elastic.co/t/testing-logstash-custom-conf-file-with-custom-file-input/217285
**Category:** Logstash
**Created:** [January 31, 2020, 1:23am UTC](https://discuss.elastic.co/t/testing-logstash-custom-conf-file-with-custom-file-input/217285 "2020-01-31T01:23:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ellje](https://avatars.discourse-cdn.com/v4/letter/e/7993a0/32.png) [@ellje](https://discuss.elastic.co/u/ellje)
#### Post date: [January 31, 2020, 1:23am UTC](https://discuss.elastic.co/t/testing-logstash-custom-conf-file-with-custom-file-input/217285/1 "2020-01-31T01:23:59Z")

</div>

Would like to have Logstash use my custom .conf file and custom input file input and generate any errors (if any) or outputs. Is there a way to do this?

---

<div class="post-metadata">

### Author: ![ropc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ropc/32/47022_2.png) [@ropc](https://discuss.elastic.co/u/ropc)
#### Post date: [January 31, 2020, 5:43am UTC](https://discuss.elastic.co/t/testing-logstash-custom-conf-file-with-custom-file-input/217285/2 "2020-01-31T05:43:36Z")

</div>

Hi @ellje - To run Logstash with a specific pipeline configuration file, you can use the following [command flag](https://www.elastic.co/guide/en/logstash/current/running-logstash-command-line.html#command-line-flags):

- `-f, --path.config CONFIG_PATH`

For example: `bin/logstash --debug -f CONFIG_PATH`.

---

<div class="post-metadata">

### Author: ![ellje](https://avatars.discourse-cdn.com/v4/letter/e/7993a0/32.png) [@ellje](https://discuss.elastic.co/u/ellje)
#### Post date: [January 31, 2020, 6:54pm UTC](https://discuss.elastic.co/t/testing-logstash-custom-conf-file-with-custom-file-input/217285/3 "2020-01-31T18:54:15Z")

</div>

Hi @ropc, thanks for the reply! How do I use that configuration file on another file/log input?

---

<div class="post-metadata">

### Author: ![ropc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ropc/32/47022_2.png) [@ropc](https://discuss.elastic.co/u/ropc)
#### Post date: [February 1, 2020, 1:16am UTC](https://discuss.elastic.co/t/testing-logstash-custom-conf-file-with-custom-file-input/217285/4 "2020-02-01T01:16:36Z")

</div>

@ellje - I am afraid I do not quite understand your question. Could you tell us more about your use case and what you are trying to achieve? Thank you.

---

<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 29, 2020, 1:16am UTC](https://discuss.elastic.co/t/testing-logstash-custom-conf-file-with-custom-file-input/217285/5 "2020-02-29T01:16:40Z")

</div>

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