[ERROR][logstash.instrument.periodicpoller.jvm] Periodi cPoller: exception

Since your line begins with a # this is treated as an empty first column. You can either strip the first # on the line by using a mutate filter's gsub option or add a dummy column as the first column.

I am using below config file
input {
beats {
port => 5042
codec => multiline
{
pattern => "^#2.0"
what => "previous"
negate =>"true"
charset => "ISO-8859-1"
} } }
filter {
csv {
separator => "#"
columns => ["m0","m1","DateTime","Timezone","Severity","Category","m6","CustomerMessageComponent","RuntimeComponent" ,"LogID","CorrelationID","Application","Location","User","Session","m2","PassportSession","PassportUserActivityID","PassportConnection","PassportConnectionCounter","Thread","m4","m5","ErrorMessage"]

}
}
output {
if "trace" in [type]{
elasticsearch {
hosts => ["10.103.20.64"]
index => "csvconfignine"
} } }

After using this I am getting correct data in first 5 fields after that m6 field is blank and rest of the fields ("CustomerMessageComponent","RuntimeComponent" ,"LogID","CorrelationID","Application","Location","User","Session","m2","PassportSession","PassportUserActivityID","PassportConnection","PassportConnectionCounter","Thread","m4","m5","ErrorMessage") are not visible in kibana.

What is missing in config file.

Please copy/paste the raw JSON document instead of posting Kibana screenshots. The easiest way of getting that is by expanding a single event and navigating to its JSON tab.

Sample Data

#2.0#2017 07 11 01:04:32:391#0-500#Error#com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment#
#BC-ESI-WS-JAV-RT#webservices_lib#C0008F16D17A00740000000400001D48#29014150000000005#sap.com/com.sap.xi.mdt.beans#com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment#SM_COLL_GTA#51##D489991E65FD11E7BC6A000001BAB886#d489991e65fd11e7bc6a000001bab886##0#Thread[HTTP Worker [@224911809],5,Dedicated_Application_Thread]#Plain##
process()
[EXCEPTION]
com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException: javax.ejb.EJBAccessException: ASJ.ejb.005045 (Failed in component: sap.com/com.sap.xi.mdt.beans, BC-XI-IS-WKB) ASJ.ejb.003001 Principal: SM_COLL_GTA (authentication method: password), policyContextID: sap.com/com.sap.xi.mdt.beanscom_sap.xpi.mdt.afbean.jar, permission.name: AdapterMessageMonitoringBean, permission.actions: getMessageList,Remote,com.sap.aii.mdt.server.adapterframework.ws.AdapterFilter,java.lang.Integer
at com.sap.engine.services.ejb3.webservice.impl.DefaultImplementationContainer.invokeMethod(DefaultImplementationContainer.java:195)
at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process0(RuntimeProcessingEnvironment.java:710)
at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.preProcess(RuntimeProcessingEnvironment.java:662)
at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process(RuntimeProcessingEnvironment.java:322)
at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPostWOLogging(ServletDispatcherImpl.java:199)
at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:65)
at com.sap.engine.services.webservices.servlet.SoapServlet.doPost(SoapServlet.java:61)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)
at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:466)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:278)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:468)
at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:262)
at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
Caused by: javax.ejb.EJBAccessException: ASJ.ejb.005045 (Failed in component: sap.com/com.sap.xi.mdt.beans, BC-XI-IS-WKB) ASJ.ejb.003001 Principal: SM_COLL_GTA (authentication method: password), policyContextID: sap.com/com.sap.xi.mdt.beans
com_sap.xpi.mdt.afbean.jar, permission.name: AdapterMessageMonitoringBean, permission.actions: getMessageList,Remote,com.sap.aii.mdt.server.adapterframework.ws.AdapterFilter,java.lang.Integer
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:22)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:17)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)
at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:138)
at com.sap.engine.services.ejb3.webservice.impl.DefaultImplementationContainer.invokeMethod(DefaultImplementationContainer.java:186)
... 44 more

Sure

Sample Data

What? No! That's not what I asked for. Please reread my post.

JSON:-
{
"_index": "csvconfigeight",
"_type": "trace",
"_id": "AV1BcJ3FyFBSkX8Zak1K",
"_score": null,
"_source": {
"Timezone": "0-500",
"m0": null,
"Category": "com.sap.engine.services.ejb3.runtime",
"offset": 10465895,
"m1": "2.0\b",
"input_type": "log",
"m6": null,
"Severity": "Error",
"source": "D:\png\logfiles\sap\test\defaultTrace_00.18.trc",
"message": "#2.0\b#2017 07 11 12:18:34:911#0-500#Error#com.sap.engine.services.ejb3.runtime#\ncom.sap.ASJ.ejb.005017#BC-JAS-EJB#ejb#C0008F16D17A048C0000000300001D48#29014150000000005#sap.com/com.sap.xi.mdt.beans#com.sap.engine.services.ejb3.runtime#SM_COLL_GTA#919##FE215112665B11E7C302000001BAB886#fe215112665b11e7c302000001bab886##0#Thread[HTTP Worker [@224911809],5,Dedicated_Application_Thread]#Plain##\nSystem exception \n[EXCEPTION]\njavax.ejb.EJBAccessException: ASJ.ejb.005045 (Failed in component: sap.com/com.sap.xi.mdt.beans, BC-XI-IS-WKB) ASJ.ejb.003001 Principal: SM_COLL_GTA (authentication method: password), policyContextID: sap.com/com.sap.xi.mdt.beans*com_sap.xpi.mdt.afbean.jar, permission.name: AdapterMessageMonitoringBean, permission.actions: getMessageList,Remote,com.sap.aii.mdt.server.adapterframework.ws.AdapterFilter,java.lang.Integer\n\tat com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:22)\n\tat com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)\n\tat com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:17)\n\tat com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)\n\tat com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:138)\n\tat com.sap.engine.services.ejb3.webservice.impl.DefaultImplementationContainer.invokeMethod(DefaultImplementationContainer.java:186)\n\tat com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process0(RuntimeProcessingEnvironment.java:710)\n\tat com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.preProcess(RuntimeProcessingEnvironment.java:662)\n\tat com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process(RuntimeProcessingEnvironment.java:322)\n\tat com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPostWOLogging(ServletDispatcherImpl.java:199)\n\tat com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:65)\n\tat com.sap.engine.services.webservices.servlet.SoapServlet.doPost(SoapServlet.java:61)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:754)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:847)\n\tat com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)\n\tat com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)\n\tat com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:466)\n\tat com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)\n\tat com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)\n\tat com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)\n\tat com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)\n\tat com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)\n\tat com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)\n\tat com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)\n\tat com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:278)\n\tat com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)\n\tat com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)\n\tat com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)\n\tat com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)\n\tat com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)\n\tat com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)\n\tat com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)\n\tat com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)\n\tat com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)\n\tat com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)\n\tat com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)\n\tat com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)\n\tat com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)\n\tat com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)\n\tat com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)\n\tat com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)\n\tat com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)\n\tat com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)\n\tat com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)\n\tat com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:468)\n\tat com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:262)\n\tat com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)\n\tat com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)\n\tat com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)\n\tat com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)\n\n#",
"type": "trace",
"DateTime": "2017 07 11 12:18:34:911",
"tags": [
"multiline",
"beats_input_codec_multiline_applied"
],
"@timestamp": "2017-07-14T14:11:14.024Z",
"@version": "1",
"beat": {
"hostname": "INFARSZC90433",
"name": "INFARSZC90433",
"version": "5.2.2"
},
"host": "INFARSZC90433"
},
"fields": {
"@timestamp": [
1500041474024
]
},
"sort": [
1500041474024
]
}

The reason the CSV parsing stops after the m6 column is the newline character. This is a known bug (below). You're using Filebeat to collect the logs, right? If so you might be able to work around the bug by moving the multiline processing to Filebeat. You should do that anyway since it'll be more reliable, but if it also solves this problem then all the better.

It won't work for me.They said "I believe the spec was - only if it was enclosed in quotes." and my data is not enclosed in quotes.
Could you please suggest me some solution with existing grok pattern?

You should be able to use a grok expression like this:

(?<column1>[^#]*)#(?<column2>[^#]*)#...

That is, capture into each column sequences of characters of any kind except #, which is the column separator.

Over and out.

Hi,
I tried above grok pattern.My config file is

   beats {
	port => 5042
	 codec => multiline
         {
          pattern => "^#2.0"
          what => "previous"
          negate =>"true"
		  charset => "ISO-8859-1"
         }
}

}
filter
{
if "trc-prd" in [type]{
grok {
match => {"message" => "#(?<prd_m1>[^#])#(?<prd_DateTime>[^#])#(?<prd_Timezone>[^#])#(?<prd_Severity>[^#])#(?<prd_Category>[^#])#(?<prd_m6>[^#])#(?<prd_CustomerMessageComponent>[^#])#(?<prd_RuntimeComponent>[^#])#(?<prd_LogID>[^#])#(?<prd_CorrelationID>[^#])#(?<prd_Application>[^#])#(?<prd_Location>[^#])#(?<prd_User>[^#])#(?<prd_Session>[^#])#(?<prd_m2>[^#])#(?<prd_PassportSession>[^#])#(?<prd_PassportUserActivityID>[^#])#(?<prd_PassportConnection>[^#])#(?<prd_PassportConnectionCounter>[^#])#(?<prd_Thread>[^#])#(?<prd_m4>[^#])#(?<prd_m5>[^#])#(?<prd_ErrorMessage>[^#]*)#"}
}
mutate
{
#remove_tag => ["multiline"],
remove_field => ["prd_m1","prd_m4","prd_m6","prd_m2","prd_m5"]
strip => ["prd_DateTime"]
}
date {
match => [ "prd_DateTime", "YYYY MM dd HH:mm:ss:SSS" ]
timezone => "EST"
target => "prd_DateTime"
}
}
}
output {

if "trc-prd" in [type]{
	elasticsearch {
		hosts => ["10.103.20.64"]
		index => "sap-trace-app-logs-k8p"  
	}
}

}

But still I am facing same issue.
reason"=>"Document contains at least one immense term in
field="prd_ErrorMessage" (whose UTF8 encoding is longer than the max length 32
766), all of which were skipped. Please correct the analyzer to not produce suc
h terms. The prefix of the first immense term is: '[10, 80, 114, 105, 99, 101,
69, 120, 112, 108, 111, 115, 105, 111, 110, 66, 101, 97, 110, 32, 87, 83, 58, 72
, 97, 115, 104, 32, 109, 97]...', original message: bytes can be at most 32766 i
n length; got 43526", "caused_by"=>{"type"=>"max_bytes_length_exceeded_exception
", "reason"=>"bytes can be at most 32766 in length; got 43526"}}}}}

I am loading log files from 4 sources(K2P,K8P,K2Q and K8Q) and 7 servers. Filebeat is running separately on each source.Volume of data is too high.
Is there anything in filebeat to manage data load.I am reading three type of file defaultTrace_.trc,applications_.log,security_00.*.log but format of data is same in all the log files.

Please suggest something to resolve this.

Hi ,
I used new grok pattern suggested by you but still I am facing timeout error.

[2017-08-10T22:02:21,185][ERROR][logstash.instrument.periodicpoller.jvm] Periodi
cPoller: exception {:poller=>#<LogStash::Instrument::PeriodicPoller::JVM:0x611eb
cfa @task=#<Concurrent::TimerTask:0x5d444bd3 @observers=#<Concurrent::Collection
::CopyOnNotifyObserverSet:0x599dd9b8 @observers={#<LogStash::Instrument::Periodi
cPoller::JVM:0x611ebcfa ...>=>:update}>, @timeout_interval=60.0, @running=#, @StoppedEvent=#<Concurrent::Event:0x62df52cb
@set=false, @iteration=0>, @execution_interval=1.0, @do_nothing_on_deref=true, @
run_now=nil, @freeze_on_deref=nil, @executor=#<Concurrent::SafeTaskExecutor:0x55
381731 @task=#<Proc:0x2e07be91@G:/ELK_Softwares/exe/logstash-5.0.0-truncate/logs
tash-5.0.0/logstash-core/lib/logstash/instrument/periodic_poller/base.rb:52>, @e
xception_class=StandardError>, @StopEvent=#<Concurrent::Event:0x67b7aa55 @set=fa
lse, @iteration=0>, @value=nil, @copy_on_deref=nil, @dup_on_deref=nil>, @peak_th
reads=55, @peak_open_fds=-1, @metric=#<LogStash::Instrument::Metric:0x7f66e562 @
collector=#<LogStash::Instrument::Collector:0x65e1c98c @agent=nil, @metric_store
=#<LogStash::Instrument::MetricStore:0x6af2e420 @store=#<Concurrent::map:0x79923
cd9 @default_proc=nil>, @structured_lookup_mutex=#Mutex:0x23add4bc, @fast_look
up=#<Concurrent::map:0x6b28785e @default_proc=nil>>, @observer_state=false, @sna
pshot_task=#<Concurrent::TimerTask:0x168642ff @observers=#<Concurrent::Collectio
n::CopyOnNotifyObserverSet:0x7e1ac002 @observers={#<LogStash::Instrument::Collec
tor:0x65e1c98c ...>=>:update}>, @timeout_interval=600.0, @running=#<Concurrent::
AtomicBoolean:0x1b1d87e4>, @StoppedEvent=#<Concurrent::Event:0x3fa8afc2 @set=fal
se, @iteration=0>, @execution_interval=1.0, @do_nothing_on_deref=true, @run_now=
nil, @freeze_on_deref=nil, @executor=#<Concurrent::SafeTaskExecutor:0x179a62e5 @
task=#<Proc:0x5b930ef4@G:/ELK_Softwares/exe/logstash-5.0.0-truncate/logstash-5.0
.0/logstash-core/lib/logstash/instrument/collector.rb:87>, @exception_class=Stan
dardError>, @StopEvent=#<Concurrent::Event:0x2c4690c5 @set=false, @iteration=0>,
@value=false, @copy_on_deref=nil, @dup_on_deref=nil>>>, @options={:polling_inte
rval=>1, :polling_timeout=>60}>, :result=>nil, :exception=>#<Concurrent::Timeout
Error: Concurrent::TimeoutError>, :executed_at=>2017-08-10 22:02:21 -0500}

Please let me know if you have any idea regarding this error.

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