# Sending Logstash's logs to /var/log/logstash but not to elasticsearch

**URL:** https://discuss.elastic.co/t/sending-logstashs-logs-to-var-log-logstash-but-not-to-elasticsearch/107051
**Category:** Logstash
**Created:** [November 9, 2017, 1:59pm UTC](https://discuss.elastic.co/t/sending-logstashs-logs-to-var-log-logstash-but-not-to-elasticsearch/107051 "2017-11-09T13:59:40Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Ferrow](https://avatars.discourse-cdn.com/v4/letter/f/7bcc69/32.png) [@Ferrow](https://discuss.elastic.co/u/Ferrow)
#### Post date: [November 9, 2017, 1:59pm UTC](https://discuss.elastic.co/t/sending-logstashs-logs-to-var-log-logstash-but-not-to-elasticsearch/107051/1 "2017-11-09T13:59:40Z")

</div>

Hi guys..

Im very new to this, but i dont understand why I cant load my .conf file in /usr/share/logstash/bin.. using ./logstash -f file.conf  
getting a message saying: "Sending Logstash's logs to /var/log/logstash which is now configured via log4j2.properties"  
but i cant see my index in Kibana after....

Its on a fresh ubuntu 17.10 with a newly installed ELK stack.

Will someone be so kind and explain to me what this means?  
How do I make it work?

---

<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: [November 9, 2017, 2:16pm UTC](https://discuss.elastic.co/t/sending-logstashs-logs-to-var-log-logstash-but-not-to-elasticsearch/107051/2 "2017-11-09T14:16:31Z")

</div>

And what's in your config file?

---

<div class="post-metadata">

### Author: ![Ferrow](https://avatars.discourse-cdn.com/v4/letter/f/7bcc69/32.png) [@Ferrow](https://discuss.elastic.co/u/Ferrow)
#### Post date: [November 15, 2017, 7:30am UTC](https://discuss.elastic.co/t/sending-logstashs-logs-to-var-log-logstash-but-not-to-elasticsearch/107051/3 "2017-11-15T07:30:39Z")

</div>

witch one of them do you need? Logstash's yaml file or the .conf i have been working on?

---

<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: [November 15, 2017, 7:36am UTC](https://discuss.elastic.co/t/sending-logstashs-logs-to-var-log-logstash-but-not-to-elasticsearch/107051/4 "2017-11-15T07:36:09Z")

</div>

The .conf file.

---

<div class="post-metadata">

### Author: ![Ferrow](https://avatars.discourse-cdn.com/v4/letter/f/7bcc69/32.png) [@Ferrow](https://discuss.elastic.co/u/Ferrow)
#### Post date: [November 15, 2017, 8:39am UTC](https://discuss.elastic.co/t/sending-logstashs-logs-to-var-log-logstash-but-not-to-elasticsearch/107051/5 "2017-11-15T08:39:51Z")

</div>

input {  
file {  
type =\> "CISCO\_ASA\_FIREWALL"  
exclude =\> "_.gz"   
path =\> "/home/lasse/Skrivebord/51asa5525/messages-2015-10-30_"  
start\_position =\> "beginning"  
}  
}

filter {  
if [type] == "CISCO\_ASA\_FIREWALL" {  
grok {  
match =\> {"message" =\> "%{SYSLOGTIMESTAMP:Cisco\_Time} %{SYSLOGHOST:Cisco\_Host} %{NOTSPACE:LogID} [\s\*%{DATA:drop\_type}\s\*] drop %{DATA:drop\_rate\_id} exceeded. Current burst rate is %{INT:drop\_rate\_current\_burst} per second, max configured rate is %{INT:drop\_rate\_max\_burst}; Current average rate is %{INT:drop\_rate\_current\_avg} per second, max configured rate is %{INT:drop\_rate\_max\_avg}; Cumulative total count is %{INT:drop\_total\_count}"}  
}  
}   
}

output {  
stdout { codec =\> plain }   
elasticsearch { hosts =\> ["[http://localhost:9200](http://localhost:9200)"]  
document\_type =\> "text"  
index =\> "apples"  
}  
}

---

<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: [November 15, 2017, 1:03pm UTC](https://discuss.elastic.co/t/sending-logstashs-logs-to-var-log-logstash-but-not-to-elasticsearch/107051/6 "2017-11-15T13:03:49Z")

</div>

As I explained in another thread yesterday, `start_position => "beginning"` only matters for new and previously unseen files. Logstash is probably tailing the input file.

---

<div class="post-metadata">

### Author: ![Ferrow](https://avatars.discourse-cdn.com/v4/letter/f/7bcc69/32.png) [@Ferrow](https://discuss.elastic.co/u/Ferrow)
#### Post date: [November 16, 2017, 9:14am UTC](https://discuss.elastic.co/t/sending-logstashs-logs-to-var-log-logstash-but-not-to-elasticsearch/107051/7 "2017-11-16T09:14:14Z")

</div>

but how should Logstash have seens theese files before when its a fresh install..?! -  
I dont understand why Logstash don't read from the beginning of the file - seems odd.??

In any case.. what do I have to do, in order to fix this issue?

thanks is advance!

---

<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: [December 14, 2017, 9:14am UTC](https://discuss.elastic.co/t/sending-logstashs-logs-to-var-log-logstash-but-not-to-elasticsearch/107051/8 "2017-12-14T09:14:21Z")

</div>

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