# Grok Output to comma separated

**URL:** <https://discuss.elastic.co/t/grok-output-to-comma-separated/116502>\
**Category:** Logstash\
**Created:** [January 22, 2018, 3:44pm UTC](https://discuss.elastic.co/t/grok-output-to-comma-separated/116502 "2018-01-22T15:44:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vivek\_Raj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vivek_raj/32/45342_2.png) [@Vivek\_Raj](https://discuss.elastic.co/u/Vivek_Raj)\
**Post date:** [January 22, 2018, 3:44pm UTC](https://discuss.elastic.co/t/grok-output-to-comma-separated/116502/1 "2018-01-22T15:44:51Z")

</div>

Hi Everyone,

How can i convert my Grok output to comma separated

**My Grok Pattern (Nginx access log)**

%{IPORHOST:clientip} %{NGUSER:ident} %{NGUSER:auth} [%{HTTPDATE:timestamp}] \ "(?:%{WORD:verb} %{NOTSPACE:request}(?: HTTP/%{NUMBER:httpversion})?|-)" %{NUMBER:response} (?:%{NUMBER:bytes}|-) %{GREEDYDATA:message}

**Expected Output**

clientip,ident,auth,timestamp,verb,request,httpversion,response,bytes,message

Please help to build logstash config here.

Thanks  
Viv

---

<div class="post-metadata">

**Author:** ![JKhondhu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JKhondhu](https://discuss.elastic.co/u/JKhondhu)\
**Post date:** [January 24, 2018, 11:20am UTC](https://discuss.elastic.co/t/grok-output-to-comma-separated/116502/2 "2018-01-24T11:20:51Z")

</div>

Hi,

Have a ganders at the CSV output plugin: [https://www.elastic.co/guide/en/logstash/current/plugins-outputs-csv.html](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-csv.html)

---

<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 21, 2018, 11:21am UTC](https://discuss.elastic.co/t/grok-output-to-comma-separated/116502/3 "2018-02-21T11:21:00Z")

</div>

Closed on February 21, 2018, 11:21am UTC

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