# How to input arguments via command line to conf?

**URL:** https://discuss.elastic.co/t/how-to-input-arguments-via-command-line-to-conf/183798
**Category:** Logstash
**Created:** [June 1, 2019, 1:45am UTC](https://discuss.elastic.co/t/how-to-input-arguments-via-command-line-to-conf/183798 "2019-06-01T01:45:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Prapat\_Polchan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prapat_polchan/32/20060_2.png) [@Prapat\_Polchan](https://discuss.elastic.co/u/Prapat_Polchan)
#### Post date: [June 1, 2019, 1:45am UTC](https://discuss.elastic.co/t/how-to-input-arguments-via-command-line-to-conf/183798/1 "2019-06-01T01:45:42Z")

</div>

example

i have one conf file

input{  
'stdin'=\>$sss  
}

i want to input $sss via command line

example

logstash -f a.conf "value replace to $sss"

can possible in logstash conf ?

---

<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: [June 1, 2019, 11:49am UTC](https://discuss.elastic.co/t/how-to-input-arguments-via-command-line-to-conf/183798/2 "2019-06-01T11:49:04Z")

</div>

If you are a Bourne shell user then you could do this using [environment variables](https://www.elastic.co/guide/en/logstash/current/environment-variables.html). I would expect that to work for bash or Korn shell users as well, but not csh.

---

<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: [June 29, 2019, 11:49am UTC](https://discuss.elastic.co/t/how-to-input-arguments-via-command-line-to-conf/183798/3 "2019-06-29T11:49:07Z")

</div>

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