# Clarification on Index/Index Pattern Creation

**URL:** <https://discuss.elastic.co/t/clarification-on-index-index-pattern-creation/199008>\
**Category:** Logstash\
**Created:** [September 11, 2019, 5:19am UTC](https://discuss.elastic.co/t/clarification-on-index-index-pattern-creation/199008 "2019-09-11T05:19:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_Graville](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matthew_graville/32/53743_2.png) [@Matthew\_Graville](https://discuss.elastic.co/u/Matthew_Graville)\
**Post date:** [September 11, 2019, 5:19am UTC](https://discuss.elastic.co/t/clarification-on-index-index-pattern-creation/199008/1 "2019-09-11T05:19:48Z")

</div>

Followed this Elastic link: [Parsing your first logs with logstash](https://www.elastic.co/guide/en/logstash/current/advanced-pipeline.html)

works great and I can use discover to see the Apache logs in Kibana. Yay!

So now, I have my Palo FW logs and have adjusted the Filebeat file from the tutorial as such:  
paths:  
- /var/log/logstash/logstash-tutorial.log  
- /var/log/PaloaltoFW/PA-220-Dev.log

And I get an ERROR in Kibana on Index Patterns for filebeat-\*, which rectifies if I switch to the one from the tutorial logstash-%DATE-00001 as default !

pipelines.yml  
- pipeline.id: sample  
path.config: "/etc/logstash/conf.d/first-pipeline.conf"

```
- pipeline.id: main
  path.config: "/etc/logstash/conf.d/PaloFW-pipeline.conf"

- pipeline.id: rsyslog
  path.config: "/etc/logstash/conf.d/rsyslog.conf"

```

Also I do remove the registry files from filebeat.

My PaloFW-pipeline.conf:  
# The # character at the beginning of a line indicates a comment. Use  
# comments to describe your configuration.  
input {  
beats {  
port =\> "5044"  
type =\> "syslog"  
}  
}  
# The filter part of this file is commented out to indicate that it is  
# optional.  
filter {  
if [type] == "syslog" {  
grok {  
match =\> { "message" =\> "%{SYSLOGTIMESTAMP:syslog\_timestamp} %{SYSLOGHOST:syslog\_hostname} %{DATA:syslog\_program}(?:[%{POSINT:syslog\_pid}])?: %{GREEDYDATA:syslog\_message}" }  
add\_field =\> ["received\_at", "%{@timestamp}"]  
add\_field =\> ["received\_from", "%{host}"]  
}  
date {  
match =\> ["syslog\_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss"]  
}  
}  
kv {}  
}  
output {  
elasticsearch {  
hosts =\> ["10.10.69.20:9200"]  
}  
}

I can now see the logs in Kibana, but had to switch to my default Index and the filebeat-\* still gets the error at the beginning of post. Ideally I want the parse the tutorial.log and my firewall.log on the logstash server and have them show up as seperate indicies and index patterns...once I do that I will move on to other use cases.

So they load into the index from the tutorial logstash-%DATE%-0001 and I can see them, my filters could be better. But I need to sort out how indexes work and if I can use filebeat for more than 1 .log and create more than 1 index.

Many thanks community for any clarification!

---

<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 9, 2019, 5:19am UTC](https://discuss.elastic.co/t/clarification-on-index-index-pattern-creation/199008/2 "2019-10-09T05:19:58Z")

</div>

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