# How to filter only below format from log file

**URL:** <https://discuss.elastic.co/t/how-to-filter-only-below-format-from-log-file/136414>\
**Category:** Logstash\
**Created:** [June 19, 2018, 5:35am UTC](https://discuss.elastic.co/t/how-to-filter-only-below-format-from-log-file/136414 "2018-06-19T05:35:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naveen\_Reddy\_Sama](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/naveen_reddy_sama/32/32399_2.png) [@Naveen\_Reddy\_Sama](https://discuss.elastic.co/u/Naveen_Reddy_Sama)\
**Post date:** [June 19, 2018, 5:35am UTC](https://discuss.elastic.co/t/how-to-filter-only-below-format-from-log-file/136414/1 "2018-06-19T05:35:36Z")

</div>

Hi Folks,

below log is getting from the JMeter log file, can anyone help how to write logstash config filter.

timeStamp,elapsed,label,responseCode,threadName,success,bytes,sentBytes,grpThreads,allThreads,Latency,SampleCount,ErrorCount,Hostname,IdleTime,Connect

2018-06-18T17:22:07.406+0530,1525,Home,200,Thread Group 1-14,true,8333,629,20,20,0,1,0,BLR3264D,1,0

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 19, 2018, 6:16am UTC](https://discuss.elastic.co/t/how-to-filter-only-below-format-from-log-file/136414/2 "2018-06-19T06:16:26Z")

</div>

Use a csv filter.

---

<div class="post-metadata">

**Author:** ![Naveen\_Reddy\_Sama](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/naveen_reddy_sama/32/32399_2.png) [@Naveen\_Reddy\_Sama](https://discuss.elastic.co/u/Naveen_Reddy_Sama)\
**Post date:** [June 19, 2018, 6:20am UTC](https://discuss.elastic.co/t/how-to-filter-only-below-format-from-log-file/136414/3 "2018-06-19T06:20:32Z")

</div>

hye magnusbaeck thanks for responds

while using csv file am getting below error

[2018-06-18T17:54:41,329][ERROR][logstash.agent] Failed to execute action {:id=\>:main, :action\_type=\>LogStash::ConvergeResult::FailedAction, :message=\>"Could not execute action: LogStash::PipelineAction::Create/pipeline\_id:main, action\_result: false", :backtrace=\>nil}

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 19, 2018, 8:38am UTC](https://discuss.elastic.co/t/how-to-filter-only-below-format-from-log-file/136414/4 "2018-06-19T08:38:30Z")

</div>

Is that the only log message you get? And what was the configuration you tried?

---

<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 17, 2018, 8:38am UTC](https://discuss.elastic.co/t/how-to-filter-only-below-format-from-log-file/136414/5 "2018-07-17T08:38:35Z")

</div>

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