# Hi all, I want to Index data into elasticsearch using PHP. Can anyone guide me?

**URL:** https://discuss.elastic.co/t/hi-all-i-want-to-index-data-into-elasticsearch-using-php-can-anyone-guide-me/295652
**Category:** Elasticsearch
**Tags:** language-clients
**Created:** [January 28, 2022, 5:39am UTC](https://discuss.elastic.co/t/hi-all-i-want-to-index-data-into-elasticsearch-using-php-can-anyone-guide-me/295652 "2022-01-28T05:39:20Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Chinmay\_Bhusate](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chinmay_bhusate/32/100952_2.png) [@Chinmay\_Bhusate](https://discuss.elastic.co/u/Chinmay_Bhusate)
#### Post date: [January 28, 2022, 5:39am UTC](https://discuss.elastic.co/t/hi-all-i-want-to-index-data-into-elasticsearch-using-php-can-anyone-guide-me/295652/1 "2022-01-28T05:39:21Z")

</div>

I want to Index data Using PHP . But not able to configure the settings.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [January 28, 2022, 5:54am UTC](https://discuss.elastic.co/t/hi-all-i-want-to-index-data-into-elasticsearch-using-php-can-anyone-guide-me/295652/2 "2022-01-28T05:54:42Z")

</div>

You need to explain what you did and what is the error exactly.

---

<div class="post-metadata">

### Author: ![Chinmay\_Bhusate](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chinmay_bhusate/32/100952_2.png) [@Chinmay\_Bhusate](https://discuss.elastic.co/u/Chinmay_Bhusate)
#### Post date: [January 30, 2022, 6:52pm UTC](https://discuss.elastic.co/t/hi-all-i-want-to-index-data-into-elasticsearch-using-php-can-anyone-guide-me/295652/3 "2022-01-30T18:52:16Z")

</div>

Hi David, I installed Elasticsearch version 7.16.3 And Kibana. Now I had written one script to create index and add some data in that index . But I want to import the data of CSV file to Elasticsearch using PHP . I'm not able to write that script.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [January 30, 2022, 9:38pm UTC](https://discuss.elastic.co/t/hi-all-i-want-to-index-data-into-elasticsearch-using-php-can-anyone-guide-me/295652/4 "2022-01-30T21:38:21Z")

</div>

I'm not good at PHP so I can't help.

Why do you want to use PHP for this? I mean that you can use other tools like Logstash, filebeat...

---

<div class="post-metadata">

### Author: ![Chinmay\_Bhusate](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chinmay_bhusate/32/100952_2.png) [@Chinmay\_Bhusate](https://discuss.elastic.co/u/Chinmay_Bhusate)
#### Post date: [January 31, 2022, 4:23am UTC](https://discuss.elastic.co/t/hi-all-i-want-to-index-data-into-elasticsearch-using-php-can-anyone-guide-me/295652/5 "2022-01-31T04:23:45Z")

</div>

Yes I can use logstash .... But it's easy.... I was just discovering the ways to ingest data.... I had done it using python also.... But in php it seems tough

---

<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: [February 28, 2022, 4:23am UTC](https://discuss.elastic.co/t/hi-all-i-want-to-index-data-into-elasticsearch-using-php-can-anyone-guide-me/295652/6 "2022-02-28T04:23:53Z")

</div>

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