# Comand line Filebeat

**URL:** <https://discuss.elastic.co/t/comand-line-filebeat/124323>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 16, 2018, 3:54pm UTC](https://discuss.elastic.co/t/comand-line-filebeat/124323 "2018-03-16T15:54:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![franco.federico](https://avatars.discourse-cdn.com/v4/letter/f/67e7ee/32.png) [@franco.federico](https://discuss.elastic.co/u/franco.federico)\
**Post date:** [March 16, 2018, 3:54pm UTC](https://discuss.elastic.co/t/comand-line-filebeat/124323/1 "2018-03-16T15:54:52Z")

</div>

Hi all

I'm using the filebeat command line and I'm searching a mode in order to create a different name of index instead of filebeat-\*.

I'm using this command

sudo filebeat -e --module apache2 -M "apache2.access.var.paths=[\<path\_log\_apache\>]"

How could I set that I want to create for example the index test\_filebeat-\* instead of filebeat-\*.

In logstash there is the output configuration in which I set the new index name instead of the defaul name logstash.

Could you help me?

Thank you  
Franco

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [March 20, 2018, 9:58pm UTC](https://discuss.elastic.co/t/comand-line-filebeat/124323/2 "2018-03-20T21:58:12Z")

</div>

It's the `output.elasticsearch.index` setting, but it's a bit more complex for modules because the dashboards and templates all assume a given index name. So you need to change all the settings mentioned [here](https://www.elastic.co/guide/en/beats/filebeat/6.2/filebeat-template.html) under _Change the index name_.

You can introduce these settings at the CLI with `-E`, if you prefer the CLI.

---

<div class="post-metadata">

**Author:** ![franco.federico](https://avatars.discourse-cdn.com/v4/letter/f/67e7ee/32.png) [@franco.federico](https://discuss.elastic.co/u/franco.federico)\
**Post date:** [March 20, 2018, 10:38pm UTC](https://discuss.elastic.co/t/comand-line-filebeat/124323/3 "2018-03-20T22:38:09Z")

</div>

Thank you Tudor for the reply. I think that I could export dashboard in a file, then I set the parameter in filebeat.yml.  
After I re-import dashboard modified (I open the file and set new index name in the dashboard and visualize too).

At the end I start the filebeat with the modifie parameter.

Do you think that this could be a good solution?

Bye  
Franco

---

<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:** [April 17, 2018, 10:38pm UTC](https://discuss.elastic.co/t/comand-line-filebeat/124323/4 "2018-04-17T22:38:23Z")

</div>

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