# Define index pattern using script

**URL:** <https://discuss.elastic.co/t/define-index-pattern-using-script/128102>\
**Category:** Kibana\
**Created:** [April 16, 2018, 5:48am UTC](https://discuss.elastic.co/t/define-index-pattern-using-script/128102 "2018-04-16T05:48:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![meetdave2611997](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@meetdave2611997](https://discuss.elastic.co/u/meetdave2611997)\
**Post date:** [April 16, 2018, 5:48am UTC](https://discuss.elastic.co/t/define-index-pattern-using-script/128102/1 "2018-04-16T05:48:55Z")

</div>

How can i define index pattern using python or other scripts?

Thank You  
Meet

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [April 16, 2018, 8:35pm UTC](https://discuss.elastic.co/t/define-index-pattern-using-script/128102/2 "2018-04-16T20:35:38Z")

</div>

Can you be more specific?

---

<div class="post-metadata">

**Author:** ![meetdave2611997](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@meetdave2611997](https://discuss.elastic.co/u/meetdave2611997)\
**Post date:** [April 17, 2018, 6:34am UTC](https://discuss.elastic.co/t/define-index-pattern-using-script/128102/3 "2018-04-17T06:34:08Z")

</div>

I dont want to use kibana to define index-pattern. I want to use some script or REST call to that will define index pattern in .kibana index which will be recognized by kibana. How can i do that?

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [April 17, 2018, 1:19pm UTC](https://discuss.elastic.co/t/define-index-pattern-using-script/128102/4 "2018-04-17T13:19:04Z")

</div>

> [@meetdave2611997](#):
>
> which will be recognized by kibana

Maybe it is better to ask this question in the kibana category then? I will move it there.

---

<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:** [May 15, 2018, 1:19pm UTC](https://discuss.elastic.co/t/define-index-pattern-using-script/128102/5 "2018-05-15T13:19:19Z")

</div>

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