linux下过滤线上错误日志

原创 2016年05月31日 11:40:24

linux下过滤线上日志

我们在进行web开发的时候,经常要查找线上问题,查找线上问题,大多用日志来看,像log4j的日志,但日志太多,如果只输入错误日志,又不好查找问题,我们要用到linux下过滤日志,过滤我们用个人grep命令其中参数为 -E可以支持多条件检索,条件与条件之间用|分割,不多说,我们看命令和效果

grep -E 'at |Execption|exception|Caused by' test.log

查看部分效果

i.log.7:Caused by: org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
api.log.7:      at org.springframework.data.redis.connection.jedis.JedisConnectionFactory.fetchJedisConnector(JedisConnectionFactory.java:162)
api.log.7:      at org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection(JedisConnectionFactory.java:251)
api.log.7:      at org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection(JedisConnectionFactory.java:58)
api.log.7:      at org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection(RedisConnectionUtils.java:128)
api.log.7:      at org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:91)
api.log.7:      at org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:78)
api.log.7:      at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:178)
api.log.7:      at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:153)
api.log.7:      at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:86)
api.log.7:      at org.springframework.data.redis.core.DefaultValueOperations.get(DefaultValueOperations.java:43)
api.log.7:      at com.wedo.server.api.cache.TokenCache.getUserId(TokenCache.java:38)
api.log.7:      at com.wedo.server.api.cache.TokenCache.isTokenExpired(TokenCache.java:29)
api.log.7:      at com.wedo.server.api.rest.filter.SecurityRequestFilter.filter(SecurityRequestFilter.java:58)
api.log.7:      at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:264)
api.log.7:      at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:250)
api.log.7:      at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:237)
api.log.7:      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
api.log.7:Caused by: redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
api.log.7:      at redis.clients.util.Pool.getResource(Pool.java:50)
api.log.7:      at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
api.log.7:      at redis.clients.jedis.JedisPool.getResource(JedisPool.java:12)
api.log.7:      at org.springframework.data.redis.connection.jedis.JedisConnectionFactory.fetchJedisConnector(JedisConnectionFactory.java:155)
api.log.7:Caused by: java.util.NoSuchElementException: Unable to validate object
api.log.7:      at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:502)
api.log.7:      at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:361)
api.log.7:      at redis.clients.util.Pool.getResource(Pool.java:48)
api.log.7:org.jboss.resteasy.spi.UnhandledException: org.springframework.orm.jpa.JpaSystemException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.0.v20150309-bf26070): org.eclipse.persistence.exceptions.DatabaseException
api.log.7:Query: ReportQuery(referenceClass=So2oAddressNavi sql="SELECT ID AS a1, ADDRESS AS a2, LATITUDE AS a3, LEVEL AS a4, LFT AS a5, LONGITUDE AS a6, NAME AS a7, parent_id AS a8, RGHT AS a9, tree_id AS a10, region_id AS a11, (((LONGITUDE - ?) * (LONGITUDE - ?)) + ((LATITUDE - ?) * (LATITUDE - ?))) FROM so2o_addressnavi WHERE (parent_id IS NULL) ORDER BY (((LONGITUDE - ?) * (LONGITUDE - ?)) + ((LATITUDE - ?) * (LATITUDE - ?))) LIMIT ?, ?"); nested exception is javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.0.v20150309-bf26070): org.eclipse.persistence.exceptions.DatabaseException
api.log.7:      at org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:76)
api.log.7:      at org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:212)
api.log.7:      at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:149)
api.log.7:      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:372)
api.log.7:      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)
api.log.7:      at org.jboss.resteasy.plugins.server.netty.RequestDispatcher.service(RequestDispatcher.java:83)
api.log.7:      at org.jboss.resteasy.plugins.server.netty.RequestHandler.messageReceived(RequestHandler.java:56)
api.log.7:      at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
api.log.7:      at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
api.log.7:      at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
api.log.7:      at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43)
api.log.7:      at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67)
api.log.7:      at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314)
api.log.7:      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
api.log.7:      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
api.log.7:      at java.lang.Thread.run(Thread.java:745)
api.log.7:Caused by: org.springframework.orm.jpa.JpaSystemException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.0.v20150309-bf26070): org.eclipse.persistence.exceptions.DatabaseException
api.log.7:Query: ReportQuery(referenceClass=So2oAddressNavi sql="SELECT ID AS a1, ADDRESS AS a2, LATITUDE AS a3, LEVEL AS a4, LFT AS a5, LONGITUDE AS a6, NAME AS a7, parent_id AS a8, RGHT AS a9, tree_id AS a10, region_id AS a11, (((LONGITUDE - ?) * (LONGITUDE - ?)) + ((LATITUDE - ?) * (LATITUDE - ?))) FROM so2o_addressnavi WHERE (parent_id IS NULL) ORDER BY (((LONGITUDE - ?) * (LONGITUDE - ?)) + ((LATITUDE - ?) * (LATITUDE - ?))) LIMIT ?, ?"); nested exception is javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.0.v20150309-bf26070): org.eclipse.persistence.exceptions.DatabaseException
api.log.7:      at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:415)
api.log.7:      at org.springframework.orm.jpa.DefaultJpaDialect.translateExceptionIfPossible(DefaultJpaDialect.java:122)
api.log.7:      at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:417)
api.log.7:      at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:59)
api.log.7:      at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:213)
api.log.7:      at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:147)
api.log.7:      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
api.log.7:      at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodIntercceptor.invoke(CrudMethodMetadataPostProcessor.java:122)
api.log.7:      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
api.log.7:      at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
api.log.7:      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
api.log.7:      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
api.log.7:      at com.sun.proxy.$Proxy70.findSo2oAddressNavi(Unknown Source)
api.log.7:      at com.wedo.server.api.service.CommonService.getAroundDistricts(CommonService.java:1074)
api.log.7:      at com.wedo.server.api.rest.Api.getAroundDistricts(Api.java:1639)
api.log.7:      at sun.reflect.GeneratedMethodAccessor524.invoke(Unknown Source)
api.log.7:      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
api.log.7:      at java.lang.reflect.Method.invoke(Method.java:497)
api.log.7:      at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137)
api.log.7:      at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:296)
api.log.7:      at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:250)
api.log.7:      at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:237)
api.log.7:      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
api.log.7:Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.0.v20150309-bf26070): org.eclipse.persistence.exceptions.DatabaseException
api.log.7:      at org.eclipse.persistence.internal.jpa.QueryImpl.getDetailedException(QueryImpl.java:382)
api.log.7:      at org.eclipse.persistence.internal.jpa.QueryImpl.executeReadQuery(QueryImpl.java:260)
api.log.7:      at org.eclipse.persistence.internal.jpa.QueryImpl.getResultList(QueryImpl.java:473)
api.log.7:      at sun.reflect.GeneratedMethodAccessor159.invoke(Unknown Source)
api.log.7:      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
api.log.7:      at java.lang.reflect.Method.invoke(Method.java:497)
api.log.7:      at org.springframework.orm.jpa.SharedEntityManagerCreator$DeferredQueryInvocationHandler.invoke(SharedEntityManagerCreator.java:362)
api.log.7:      at com.sun.proxy.$Proxy133.getResultList(Unknown Source)
api.log.7:      at org.springframework.data.jpa.repository.query.JpaQueryExecution$CollectionExecution.doExecute(JpaQueryExecution.java:113)
api.log.7:      at org.springframework.data.jpa.repository.query.JpaQueryExecution.execute(JpaQueryExecution.java:77)
api.log.7:      at org.springframework.data.jpa.repository.query.AbstractJpaQuery.doExecute(AbstractJpaQuery.java:100)
api.log.7:      at org.springframework.data.jpa.repository.query.AbstractJpaQuery.execute(AbstractJpaQuery.java:91)
api.log.7:      at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:393)
api.log.7:      at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:371)
api.log.7:      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
api.log.7:      at org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:61)
api.log.7:      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
api.log.7:      at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98)
api.log.7:      at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:262)
api.log.7:      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95)
api.log.7:      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
api.log.7:      at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136)
api.log.7:Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.0.v20150309-bf26070): org.eclipse.persistence.exceptions.DatabaseException
api.log.7:      at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:340)
api.log.7:      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:684)
api.log.7:      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:560)
api.log.7:      at org.eclipse.persistence.internal.sessions.AbstractSession.basicExecuteCall(AbstractSession.java:2055)
api.log.7:      at org.eclipse.persistence.sessions.server.ServerSession.executeCall(ServerSession.java:570)
api.log.7:      at org.eclipse.persistence.sessions.server.ClientSession.executeCall(ClientSession.java:258)
api.log.7:      at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:242)
api.log.7:      at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:228)
api.log.7:      at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:299)
api.log.7:      at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:694)
api.log.7:      at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2740)
api.log.7:      at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllReportQueryRows(ExpressionQueryMechanism.java:2677)
api.log.7:      at org.eclipse.persistence.queries.ReportQuery.executeDatabaseQuery(ReportQuery.java:852)
api.log.7:      at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:904)
api.log.7:      at org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1132)
api.log.7:      at org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAllQuery.java:442)
api.log.7:      at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1220)
api.log.7:      at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2896)
api.log.7:      at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1857)
api.log.7:      at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1839)
api.log.7:      at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1804)
api.log.7:      at org.eclipse.persistence.internal.jpa.QueryImpl.executeReadQuery(QueryImpl.java:258)
api.log.7:Caused by: java.sql.SQLException: Error writing file '/var/tmp/MYwIfnD2' (Errcode: 28)
api.log.7:      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:996)
api.log.7:      at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887)
api.log.7:      at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823)
api.log.7:      at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2435)
api.log.7:      at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2582)
api.log.7:      at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2530)
api.log.7:      at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1907)
api.log.7:      at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2030)
api.log.7:      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeSelect(DatabaseAccessor.java:1009)
api.log.7:      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:644)
api.log.7:      at org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:76)
api.log.7:      at org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:212)
api.log.7:      at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:149)
api.log.7:      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:372)
api.log.7:      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)
api.log.7:      at org.jboss.resteasy.plugins.server.netty.RequestDispatcher.service(RequestDispatcher.java:83)
api.log.7:      at org.jboss.resteasy.plugins.server.netty.RequestHandler.messageReceived(RequestHandler.java:56)
api.log.7:      at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
api.log.7:      at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
api.log.7:      at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
api.log.7:      at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43)
api.log.7:      at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67)
api.log.7:      at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314)
api.log.7:      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
api.log.7:      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
api.log.7:      at java.lang.Thread.run(Thread.java:745)
api.log.7:Caused by: [orders_index] IndexNotFoundException[no such index]
api.log.7:      at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.resolve(IndexNameExpressionResolver.java:586)
api.log.7:      at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.concreteIndices(IndexNameExpressionResolver.java:133)
api.log.7:      at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.concreteIndices(IndexNameExpressionResolver.java:113)
api.log.7:      at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.<init>(TransportSearchTypeAction.java:121)
api.log.7:      at org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction.<init>(TransportSearchDfsQueryThenFetchAction.java:78)
api.log.7:      at org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction.<init>(TransportSearchDfsQueryThenFetchAction.java:71)
api.log.7:      at org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction.doExecute(TransportSearchDfsQueryThenFetchAction.java:68)
api.log.7:      at org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction.doExecute(TransportSearchDfsQueryThenFetchAction.java:57)
api.log.7:      at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:70)
api.log.7:      at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:97)
api.log.7:      at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:44)
api.log.7:      at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:70)
api.log.7:      at org.elasticsearch.action.support.HandledTransportAction$TransportHandler.messageReceived(HandledTransportAction.java:45)
api.log.7:      at org.elasticsearch.action.support.HandledTransportAction$TransportHandler.messageReceived(HandledTransportAction.java:41)
api.log.7:      at org.elasticsearch.transport.netty.MessageChannelHandler.handleRequest(MessageChannelHandler.java:244)
api.log.7:      at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:114)
api.log.7:      at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
api.log.7:      at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
api.log.7:      at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
api.log.7:      at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
api.log.7:      at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462)
api.log.7:      at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443)
api.log.7:      at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
api.log.7:      at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
api.log.7:      at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
api.log.7:      at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
api.log.7:      at org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:75)
api.log.7:      at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
api.log.7:      at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
api.log.7:      at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
api.log.7:      at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
api.log.7:      at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
api.log.7:      at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)
api.log.7:      at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337)
api.log.7:      at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)
api.log.7:      at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
api.log.7:      at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
api.log.7:      at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
api.log.7:      at org.jboss.resteasy.core.registry.ClassNode.match(ClassNode.java:73)
api.log.7:      at org.jboss.resteasy.core.registry.RootClassNode.match(RootClassNode.java:48)
api.log.7:      at org.jboss.resteasy.core.ResourceMethodRegistry.getResourceInvoker(ResourceMethodRegistry.java:444)
api.log.7:      at org.jboss.resteasy.core.SynchronousDispatcher.getInvoker(SynchronousDispatcher.java:234)
api.log.7:      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:171)
api.log.7:      at org.jboss.resteasy.plugins.server.netty.RequestDispatcher.service(RequestDispatcher.java:83)
api.log.7:      at org.jboss.resteasy.plugins.server.netty.RequestHandler.messageReceived(RequestHandler.java:56)
api.log.7:      at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
api.log.7:      at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
api.log.7:      at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
api.log.7:      at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43)
api.log.7:      at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67)
api.log.7:      at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314)
api.log.7:      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
api.log.7:      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
api.log.7:      at java.lang.Thread.run(Thread.java:745)
api.log.7:      at org.jboss.resteasy.core.registry.SegmentNode.match(SegmentNode.java:375)
api.log.7:      at org.jboss.resteasy.core.registry.SegmentNode.match(SegmentNode.java:114)
api.log.7:      at org.jboss.resteasy.core.registry.RootNode.match(RootNode.java:43)
api.log.7:      at org.jboss.resteasy.core.registry.RootClassNode.match(RootClassNode.java:48)
api.log.7:      at org.jboss.resteasy.core.ResourceMethodRegistry.getResourceInvoker(ResourceMethodRegistry.java:444)
api.log.7:      at org.jboss.resteasy.core.SynchronousDispatcher.getInvoker(SynchronousDispatcher.java:234)
api.log.7:      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:171)
api.log.7:      at org.jboss.resteasy.plugins.server.netty.RequestDispatcher.service(RequestDispatcher.java:83)
api.log.7:      at org.jboss.resteasy.plugins.server.netty.RequestHandler.messageReceived(RequestHandler.java:56)
api.log.7:      at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
api.log.7:      at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
api.log.7:      at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
api.log.7:      at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43)
api.log.7:      at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67)
api.log.7:      at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314)
api.log.7:      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
api.log.7:      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
api.log.7:      at java.lang.Thread.run(Thread.java:745)
                                                -----一个欢乐的程序猿
版权声明:文章来自blog.csdn.net/u011515165

相关文章推荐

日志分析查看——grep,sed,sort,awk运用

概述        我们日常应用中都离不开日志。可以说日志是我们在排查问题的一个重要依据。但是日志并不是写了就好了,当你想查看日志的时候,你会发现线上日志堆积的长度已经超越了你一行行浏览的耐性的极限了...
  • teamlet
  • teamlet
  • 2014年07月22日 17:39
  • 51682

linux查看日志命令&切割过滤日志

基础 cd /home/itweb/apache-tomcat-7.0.59_**/logs 到指定的logs目录下 查看日志 tail -200f catalina.out 查看最新的200行...

Linux日志筛选命令

下面罗列的这些基本命令,很有用,对于查询线上线下问题都非常有用的,不妨学习一下哈。 先必须了解两个最基本的命令: tail  -n  10  test.log   查询日志尾部最后10行的日志; ...
  • waeceo
  • waeceo
  • 2016年11月21日 13:30
  • 2349

Linux 截取线上日志

按日期截取线上日志命令 (1)首先,需清楚日志输出的时间日期格式,具体命令如下: sed -n ‘/6-5 00:00:00/,/6-5 16:30:31/’p catalina.log > ...

linux下的日志处理

  • 2015年08月07日 08:49
  • 5KB
  • 下载

Linux记录错误的日志文档

Linux 常见的登录文件档名 登录文件可以帮助我们了解很多系统重要的事件,包括登陆者的部分资讯,因此登录文件的权限通常是配置为仅有 root 能够读取而已。而由於登录文件可以记载系统这么多的详细资...

Linux下使用grep命令分析网站日志

  • 2015年10月10日 15:46
  • 347KB
  • 下载

Linux服务器nginx访问日志里出现大量400错误分析

服务器中的错误记录类似于这种: 124.65.133.242 – – [27/Oct/2014:14:30:51 +0800] “-” 400 0 “-” “-” 124.65.133.242...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:linux下过滤线上错误日志
举报原因:
原因补充:

(最多只允许输入30个字)