# Configure Input Logstash more one path

**URL:** <https://discuss.elastic.co/t/configure-input-logstash-more-one-path/145955>\
**Category:** Logstash\
**Created:** [August 24, 2018, 5:52pm UTC](https://discuss.elastic.co/t/configure-input-logstash-more-one-path/145955 "2018-08-24T17:52:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcos.vbp](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@marcos.vbp](https://discuss.elastic.co/u/marcos.vbp)\
**Post date:** [August 24, 2018, 5:52pm UTC](https://discuss.elastic.co/t/configure-input-logstash-more-one-path/145955/1 "2018-08-24T17:52:30Z")

</div>

Hello,

I have 10 managedServer Weblogic , and I would like add , application\_log , access.log and etc , logs for the Logstash.  
But I have one problem, how to make this , i try create file access.log using :

input {  
file {  
path =\> "/var/log/weblogic/producao/lms01/access.log"  
type =\> "weblogic-access-lms01"

}  
file {  
path =\> "/var/log/weblogic/producao/lms02/access.log"  
type =\> "weblogic-access-lms02"  
}

}

But in Kibana, only show last log.  
how to in the same grafic show both access.log diferents servers ?

Tks.

---

<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:** [August 24, 2018, 7:56pm UTC](https://discuss.elastic.co/t/configure-input-logstash-more-one-path/145955/2 "2018-08-24T19:56:22Z")

</div>

Since you haven't set `start_position` Logstash is tailing the newly added logfile. Is new data being appended to the file? You can increase Logstash's loglevel to get clues about what it's doing.

---

<div class="post-metadata">

**Author:** ![marcos.vbp](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@marcos.vbp](https://discuss.elastic.co/u/marcos.vbp)\
**Post date:** [August 24, 2018, 8:04pm UTC](https://discuss.elastic.co/t/configure-input-logstash-more-one-path/145955/3 "2018-08-24T20:04:32Z")

</div>

Exactly as I'm testing and discovering SW.  
I did the Weblogic managedServer 2 access.log mapping.  
One of lms01 and another of lms02.

I created the filter to add the type field to be able to filter  
filter {  
if [type] == "weblogic-access-lms01" {  
grok {  
match =\> {"message" =\> "% {IPORHOST: clientip}% {GREEDYDATA: syslog\_message}"}  
add\_field =\> {"server\_log" =\> "% {type}"}  
}  
}  
if [type] == "weblogic-access-lms02" {  
grok {  
match =\> {"message" =\> "% {IPORHOST: clientip}% {GREEDYDATA: syslog\_message}"}  
add\_field =\> {"server\_log" =\> "% {type}"}  
}

}  
gives you {  
match =\> ["timestamp", "dd / MMM / yyyy: HH: mm: ss Z"]  
}  
}

But when I go to Kibana, I can only visualize the addition of the last lms02. If you change the order and put the lms01 last is only it that appears.

Both logs are being populated.

I want to show in kibana, in graphical the number of accesses of each server. lms01 and lms02.

---

<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:** [September 21, 2018, 8:04pm UTC](https://discuss.elastic.co/t/configure-input-logstash-more-one-path/145955/4 "2018-09-21T20:04:36Z")

</div>

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