# Help with creating configuration file

**URL:** <https://discuss.elastic.co/t/help-with-creating-configuration-file/147316>\
**Category:** Logstash\
**Created:** [September 5, 2018, 6:22am UTC](https://discuss.elastic.co/t/help-with-creating-configuration-file/147316 "2018-09-05T06:22:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon69830709](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@anon69830709](https://discuss.elastic.co/u/anon69830709)\
**Post date:** [September 5, 2018, 6:22am UTC](https://discuss.elastic.co/t/help-with-creating-configuration-file/147316/1 "2018-09-05T06:22:17Z")

</div>

Its a 2 days and cannot even break the log into section .  
My log is down below.

[Wed Sep 05 11:45:56.601060 2018] [:error] [pid 5303:tid 140044044035840] [**client**  **192.168.1.3:51297**] [client 192.168.1.3] ModSecurity: Warning. Matched phrase "bin/bash" at ARGS:exec. [file "/usr/share/modsecurity-crs/rules/REQUEST-932-APPLICATION-ATTACK-RCE.conf"] [line "503"] [id "932160"] [**msg**" **Remote Command Execution: Unix Shell Code Found**"] [data "Matched Data: bin/bash found within ARGS:exec: /bin/bash"] [**severity "CRITICAL"**] [ver "OWASP\_CRS/3.1.0"] [tag "application-multi"] [tag "language-shell"] [tag "platform-unix"] [tag "attack-rce"] [tag "OWASP\_CRS/WEB\_ATTACK/COMMAND\_INJECTION"] [tag "WASCTC/WASC-31"] [tag "OWASP\_TOP\_10/A1"] [tag "PCI/6.5.2"] [hostname "192.168.1.4"] [uri "/index.html"] [unique\_id "W490nPk6P93iw-4gBOMpLAAAAA8"]

fields i need are marked in bold.  
can any one help me with a example configuration file for filtering.?

---

<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:** [September 5, 2018, 9:15am UTC](https://discuss.elastic.co/t/help-with-creating-configuration-file/147316/2 "2018-09-05T09:15:16Z")

</div>

Wasn't the example I gave you yesterday (in another thread) helpful?

---

<div class="post-metadata">

**Author:** ![anon69830709](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@anon69830709](https://discuss.elastic.co/u/anon69830709)\
**Post date:** [September 6, 2018, 4:50am UTC](https://discuss.elastic.co/t/help-with-creating-configuration-file/147316/3 "2018-09-06T04:50:17Z")

</div>

its was working on the grok debugger. But not in the configuration file.

---

<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:** [September 6, 2018, 6:13am UTC](https://discuss.elastic.co/t/help-with-creating-configuration-file/147316/4 "2018-09-06T06:13:16Z")

</div>

I suggest you continue that thread and show us what configuration you used and what the results coming out of Logstash were.

---

<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:** [October 4, 2018, 6:20am UTC](https://discuss.elastic.co/t/help-with-creating-configuration-file/147316/6 "2018-10-04T06:20:22Z")

</div>

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