# Can anybody help me to parse apache web and api logs

**URL:** <https://discuss.elastic.co/t/can-anybody-help-me-to-parse-apache-web-and-api-logs/163231>\
**Category:** Logstash\
**Tags:** elastic-stack-security\
**Created:** [January 7, 2019, 3:35pm UTC](https://discuss.elastic.co/t/can-anybody-help-me-to-parse-apache-web-and-api-logs/163231 "2019-01-07T15:35:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinit\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinit_kumar/32/74784_2.png) [@Vinit\_Kumar](https://discuss.elastic.co/u/Vinit_Kumar)\
**Post date:** [January 7, 2019, 3:35pm UTC](https://discuss.elastic.co/t/can-anybody-help-me-to-parse-apache-web-and-api-logs/163231/1 "2019-01-07T15:35:28Z")

</div>

Do we have any predefined pattern to parse my apache web and apache api logs.  
Below is my logs

**Apache Web Logs**

```
[06/Jan/2019:03:28:19 +0000] 66.249.79.85 "GET /pages/argylle-derego/5c3048c6e4b081094857431f HTTP/1.1" "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" 200 61379b 296ms

[06/Jan/2019:03:28:19 +0000] 75.162.245.44 "GET /fetchrecentactivitiescount.do?_=1546638820851 HTTP/1.1" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" 200 1b 112ms

[06/Jan/2019:03:28:20 +0000] 75.162.245.44 "GET /fetchrecentactivities.do?startIndex=0&batchSize=10&_=1546638820852 HTTP/1.1" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" 200 541b 86ms

[FBAN/FBIOS;FBAV/202.0.0.55.99;FBBV/135472877;FBDV/iPhone10,2;FBMD/iPhone;FBSN/iOS;FBSV/12.1.2;FBSS/3;FBCR/Verizon;FBID/phone;FBLC/en_US;FBOP/5;FBRV/135725991]" 200 13b 112ms

```

**Apache API Logs**

```
95.142.173.196 - - [04/Dec/2018:12:51:14 +0000] "POST /picture/dxm995.jpeg HTTP/1.1" 404 -
60.191.38.77 - - [04/Dec/2018:12:59:20 +0000] "GET / HTTP/1.1" 404 -
205.251.150.202 - - [05/Dec/2018:04:53:19 +0000] "GET / HTTP/1.0" 400 448
173.212.225.214 - - [05/Dec/2018:07:57:56 +0000] "GET //vtigercrm/vtigerservice.php HTTP/1.1" 404 311
61.219.11.151 - - [05/Dec/2018:11:16:00 +0000] "GET / HTTP/1.0" 400 448
74.82.47.3 - - [05/Dec/2018:17:09:51 +0000] "GET / HTTP/1.1" 404 -

```

Thanks in advance for help.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 7, 2019, 7:45pm UTC](https://discuss.elastic.co/t/can-anybody-help-me-to-parse-apache-web-and-api-logs/163231/2 "2019-01-07T19:45:44Z")

</div>

Please do not use tags for things that are not related to your topic.

---

<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 4, 2019, 7:45pm UTC](https://discuss.elastic.co/t/can-anybody-help-me-to-parse-apache-web-and-api-logs/163231/3 "2019-02-04T19:45:54Z")

</div>

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