# Creating logstash file

**URL:** https://discuss.elastic.co/t/creating-logstash-file/121810
**Category:** Logstash
**Created:** [February 28, 2018, 8:58am UTC](https://discuss.elastic.co/t/creating-logstash-file/121810 "2018-02-28T08:58:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Nada\_I](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@Nada\_I](https://discuss.elastic.co/u/Nada_I)
#### Post date: [February 28, 2018, 8:58am UTC](https://discuss.elastic.co/t/creating-logstash-file/121810/1 "2018-02-28T08:58:31Z")

</div>

How can i create the logstash file and how to run bin/logstash -f logstash.conf ?

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [February 28, 2018, 9:05am UTC](https://discuss.elastic.co/t/creating-logstash-file/121810/2 "2018-02-28T09:05:55Z")

</div>

> How can i create the logstash file

Any text editor will do.

> and how to run bin/logstash -f logstash.conf ?

What do you mean? Are you unfamiliar with how to run commands?

---

<div class="post-metadata">

### Author: ![Nada\_I](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@Nada\_I](https://discuss.elastic.co/u/Nada_I)
#### Post date: [February 28, 2018, 9:21am UTC](https://discuss.elastic.co/t/creating-logstash-file/121810/3 "2018-02-28T09:21:46Z")

</div>

i mean after i had create the text which configuration should i do on it like here  
[https://www.elastic.co/guide/en/logstash/current/configuration.html](https://www.elastic.co/guide/en/logstash/current/configuration.html)  
there is a code to add on the text or what is it

yes i don't know how to run it in the cmd

---

<div class="post-metadata">

### Author: ![rcowart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rcowart/32/88091_2.png) [@rcowart](https://discuss.elastic.co/u/rcowart)
#### Post date: [February 28, 2018, 11:05am UTC](https://discuss.elastic.co/t/creating-logstash-file/121810/4 "2018-02-28T11:05:04Z")

</div>

It sounds like you are just starting out. Once you get the basics down, you might want to check out my tutorial material, which provides a bit more in-depth example.

> **[robcowart/eslog\_tutorial](https://github.com/robcowart/eslog_tutorial)**
>
> eslog\_tutorial - From Raw Logs to Real Insights - A tutorial for getting started with log analytics using Elastic Stack.

---

<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: [March 28, 2018, 11:05am UTC](https://discuss.elastic.co/t/creating-logstash-file/121810/5 "2018-03-28T11:05:13Z")

</div>

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