# Load a few logs line to a single row in Elastic

**URL:** https://discuss.elastic.co/t/load-a-few-logs-line-to-a-single-row-in-elastic/185587
**Category:** Elasticsearch
**Created:** [June 13, 2019, 8:56am UTC](https://discuss.elastic.co/t/load-a-few-logs-line-to-a-single-row-in-elastic/185587 "2019-06-13T08:56:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ZehavaRachip](https://avatars.discourse-cdn.com/v4/letter/z/aeb1de/32.png) [@ZehavaRachip](https://discuss.elastic.co/u/ZehavaRachip)
#### Post date: [June 13, 2019, 8:56am UTC](https://discuss.elastic.co/t/load-a-few-logs-line-to-a-single-row-in-elastic/185587/1 "2019-06-13T08:56:37Z")

</div>

I'm new to the ELK stack , My task is to load asterisk logs file into the elastic search online (whenever the file get changed).  
generally every line in the log is a row in a DB , but I want that A few lines would be converted to a single row in elastic ,group by one parameter. Is there a way to do so?, could you send me informations or links for tutorials about the subject?

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [June 13, 2019, 12:05pm UTC](https://discuss.elastic.co/t/load-a-few-logs-line-to-a-single-row-in-elastic/185587/2 "2019-06-13T12:05:51Z")

</div>

the main question is how you get the logfiles into elasticsearch. If you are using logstash or filebeat take a look at these links

[https://www.elastic.co/guide/en/logstash/7.1/multiline.html](https://www.elastic.co/guide/en/logstash/7.1/multiline.html)  
[https://www.elastic.co/guide/en/beats/filebeat/7.1/multiline-examples.html](https://www.elastic.co/guide/en/beats/filebeat/7.1/multiline-examples.html)

If you are using your own ingestion mechanism you might need to extend that one or potentially switch using filebeat or logstash.

---

<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: [July 11, 2019, 12:19pm UTC](https://discuss.elastic.co/t/load-a-few-logs-line-to-a-single-row-in-elastic/185587/3 "2019-07-11T12:19:03Z")

</div>

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