# Question about log-input

**URL:** <https://community.graylog.org/t/question-about-log-input/9510>\
**Category:** Graylog Central (peer support)\
**Created:** [March 19, 2019, 7:42am UTC](https://community.graylog.org/t/question-about-log-input/9510 "2019-03-19T07:42:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![xuziheng1002](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/xuziheng1002/32/446_2.png) [@xuziheng1002](https://community.graylog.org/u/xuziheng1002)\
**Post date:** [March 19, 2019, 7:42am UTC](https://community.graylog.org/t/question-about-log-input/9510/1 "2019-03-19T07:42:07Z")

</div>

How can I collecotr the below path logs by one input rule?  
file1: /app/logs/users/_.log  
file2: /app/logs/depts/_.log

I try to set the path to “[’/app/logs/\*’]” ,but collector does not works,  
any way to collector “file1+file2” path by one regular expression?

---

<div class="post-metadata">

**Author:** ![tmacgbay](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/tmacgbay/32/3878_2.png) [@tmacgbay](https://community.graylog.org/u/tmacgbay)\
**Post date:** [March 19, 2019, 5:14pm UTC](https://community.graylog.org/t/question-about-log-input/9510/2 "2019-03-19T17:14:26Z")

</div>

Which version of Graylog are you on? Which collector are you using? can you post your current collector code (in proper formatting)?

---

<div class="post-metadata">

**Author:** ![xuziheng1002](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/xuziheng1002/32/446_2.png) [@xuziheng1002](https://community.graylog.org/u/xuziheng1002)\
**Post date:** [March 22, 2019, 12:17am UTC](https://community.graylog.org/t/question-about-log-input/9510/3 "2019-03-22T00:17:57Z")

</div>

THX,problem is resolved,  
Graylog Version:2.4.3  
Collector is filebeat

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [March 22, 2019, 8:38am UTC](https://community.graylog.org/t/question-about-log-input/9510/4 "2019-03-22T08:38:25Z")

</div>

sharing is caring …

others could learn from you, please share your solution!

---

<div class="post-metadata">

**Author:** ![xuziheng1002](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/xuziheng1002/32/446_2.png) [@xuziheng1002](https://community.graylog.org/u/xuziheng1002)\
**Post date:** [March 22, 2019, 9:00am UTC](https://community.graylog.org/t/question-about-log-input/9510/5 "2019-03-22T09:00:07Z")

</div>

> [@xuziheng1002](#):
>
> “[’/app/logs/\*’]”

solutions is that i set the logpath to [‘/app/logs/\*\*’]

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [April 5, 2019, 9:00am UTC](https://community.graylog.org/t/question-about-log-input/9510/6 "2019-04-05T09:00:08Z")

</div>

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