# Apache error.log

**URL:** <https://community.graylog.org/t/apache-error-log/20978>\
**Category:** grok Templates\
**Created:** [August 24, 2021, 9:19am UTC](https://community.graylog.org/t/apache-error-log/20978 "2021-08-24T09:19:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![colttt](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/colttt/32/9150_2.png) [@colttt](https://community.graylog.org/u/colttt)\
**Post date:** [August 24, 2021, 9:19am UTC](https://community.graylog.org/t/apache-error-log/20978/1 "2021-08-24T09:19:05Z")

</div>

Hi, here is my grok-pattern to parse the error log from apache, for me it works with a lot of error messages, also theses with no IP.

```auto
\[%{HTTPDERROR_DATE:timestamp}\] \[%{DATA:apache_error_module}:%{LOGLEVEL:log_level}\] \[pid %{POSINT:pid}(:tid %{NUMBER:tid})?\] (%{NOTSPACE:apache_error_file}:)?( )?(\[client %{IPORHOST:source_address}( )?(:%{NUMBER:source_port})?\])?( )?%{GREEDYDATA:message}

```

after you edit it, just add this to HTTPD\_ERRORLOG, which should look like `%{HTTPD20_ERRORLOG}|%{HTTPD24_ERRORLOG}|%{APACHE_ERRORLOG}`
