Skip to content

Instantly share code, notes, and snippets.

@dblessing
Last active August 29, 2015 13:56
Show Gist options
  • Save dblessing/9092724 to your computer and use it in GitHub Desktop.
Save dblessing/9092724 to your computer and use it in GitHub Desktop.
grok {
match => [
'message', '(?m)%{DATESTAMP:timestamp} ?%{LOGLEVEL:loglevel} %{DATA:category}:%{INT:line} - %{GREEDYDATA:message}',
'message', '(?m)%{GREEDYDATA:timestamp} %{JAVACLASS:class} %{WORD:method} %{GREEDYDATA:message}',
'message', '(?m)%{TIMESTAMP_ISO8601:timestamp} %{LOGLEVEL:loglevel} \[%{JAVACLASS:class}\] - %{GREEDYDATA:message}'
]
overwrite => 'message'
}
Feb 19, 2014 8:00:54 AM org.apache.catalina.core.ApplicationContext log
INFO: Set web app root system property: 'sp' = [/srv/tomcat/container/webapps/app/]
Feb 19, 2014 8:00:54 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing log4j from [classpath:log4j.properties]
Feb 19, 2014 8:00:54 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
2014-02-19 08:00:54,351 INFO [org.springframework.beans.factory.config.PropertiesFactoryBean] - Loading properties file from class path resource [default.properties]
2014-02-19 08:00:54,353 INFO [org.springframework.beans.factory.config.PropertiesFactoryBean] - Loading properties file from file [/etc/app/common.properties]
2014-02-19 08:00:54,353 INFO [org.springframework.beans.factory.config.PropertiesFactoryBean] - Loading properties file from file [/etc/app/productsearch.properties]
2014-02-19 08:00:54,360 INFO [org.springframework.web.context.support.AnnotationConfigWebApplicationContext] - Refreshing Root WebApplicationContext: startup date [Wed Feb 19 08:00:54 CST 2014]; root of context hierarchy
2014-02-19 08:00:54,429 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] - JSR-330 'javax.inject.Named' annotation found and supported for component scanning
2014-02-19 08:00:54,430 INFO [org.springframework.web.context.support.AnnotationConfigWebApplicationContext] - Registering annotated classes: [class com.example.intranet.productsearch.config.AppConfig]
2014-02-19 08:00:54,538 WARN [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner] - No MyBatis mapper was found in 'com.example.intranet.productsearch.dao.mapper' package. Please check your configuration.
2014-02-19 08:00:54,585 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] - JSR-330 'javax.inject.Named' annotation found and supported for component scanning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment