# Issues while creating an index via Logstash

**URL:** <https://forum.opensearch.org/t/issues-while-creating-an-index-via-logstash/14861>\
**Category:** OpenSearch\
**Tags:** troubleshoot, configure\
**Created:** [June 28, 2023, 9:26am UTC](https://forum.opensearch.org/t/issues-while-creating-an-index-via-logstash/14861 "2023-06-28T09:26:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)\
**Post date:** [June 28, 2023, 9:26am UTC](https://forum.opensearch.org/t/issues-while-creating-an-index-via-logstash/14861/1 "2023-06-28T09:26:06Z")

</div>

\*\*On behalf of a user of [Slack](https://opensearch.slack.com/archives/C01QENNTGUD/p1687156736250429) \*\*

> “Hi can someone help me with ingesting a small data for example if the json file containes : {  
> “coffee”: {  
> “region”: [  
> {  
> “id”: 1,  
> “name”: “John Doe”  
> },  
> {  
> “id”: 2,  
> “name”: “Don Joeh”  
> }  
> ],  
> “country”: {  
> “id”: 2,  
> “company”: “ACME”  
> }  
> },  
> “brewing”: {  
> “region”: [  
> {  
> “id”: 1,  
> “name”: “John Doe”  
> },  
> {  
> “id”: 2,  
> “name”: “Don Joeh”  
> }  
> ],  
> “country”: {  
> “id”: 2,  
> “company”: “ACME”  
> }  
> }  
> } this data, help me create a template and logstash conf file. when I am trying to ingest , there are no errors in logstash logs but it shows " The index pattern you’ve entered doesn’t match any indices. You can match any of your 21 indices, below.”

---

<div class="post-metadata">

**Author:** ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)\
**Post date:** [June 28, 2023, 9:30am UTC](https://forum.opensearch.org/t/issues-while-creating-an-index-via-logstash/14861/2 "2023-06-28T09:30:25Z")

</div>

Hi Mitali,

Could you please provide me with your Logstash config file?

Thanks,  
Mantas
