# How to differentiate type of logs in prospectus of file beats

**URL:** <https://discuss.elastic.co/t/how-to-differentiate-type-of-logs-in-prospectus-of-file-beats/148264>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 12, 2018, 6:35am UTC](https://discuss.elastic.co/t/how-to-differentiate-type-of-logs-in-prospectus-of-file-beats/148264 "2018-09-12T06:35:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chandana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chandana/32/90168_2.png) [@Chandana](https://discuss.elastic.co/u/Chandana)\
**Post date:** [September 12, 2018, 6:35am UTC](https://discuss.elastic.co/t/how-to-differentiate-type-of-logs-in-prospectus-of-file-beats/148264/1 "2018-09-12T06:35:56Z")

</div>

Hi,  
I am a newbee in file beats. In logstash conf I used to differentiate the logs in input-\> file-\> using the "type". According to that type I create the different indices for different log in the output-\>Elasticsearch. Below is a sample conf file.

> ```
> input{
> file{
> path => "D:/elkstack/AppLogs/*.log"
> type => applogs
> start_position => beginning
> }
> file{
> path => "D:/elkstack/FirewallLogs/Criticlelog*.log"
> type => Criticlelog
> start_position => beginning
> }
> file{
> path => "D:/elkstack/FirewallLogs/Debugging*.log"
> type => Debugginglog
> start_position => beginning
> }
> }
> 
> ```

Now here come my question, how do I differentiate these types using file-beats?

---

<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:** [October 10, 2018, 6:42am UTC](https://discuss.elastic.co/t/how-to-differentiate-type-of-logs-in-prospectus-of-file-beats/148264/2 "2018-10-10T06:42:57Z")

</div>

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