Open jordansissel opened 9 years ago
The reported exception is no implicit conversion from nil to integer
- odd indeed!
Can you run logstash with the --debug
flag? This should, when logtash fails, emit a stack trace that I hope to use to track down the problem.
(This issue was originally filed by @edperry at https://github.com/elastic/logstash/issues/2905)
no implicit conversion from nil to integer === I get the error only when running the /etc/init.d/logstash but I do not get this error when running it from the CLI bin/logstash -f ......
Config file is also at the bottom but since it works one way I would imagine the file is correct.
{:timestamp=>"2015-03-25T23:29:51.406000-0400", :message=>["org/jruby/RubyString.java:3690:in
[]'", "file:/opt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/1.9/pathname.rb:48:in
chop_basename'", "file:/opt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/1.9/pathname.rb:222:inrelative?'", "/opt/logstash/lib/logstash/inputs/file.rb:85:in
register'", "org/jruby/RubyArray.java:1613:ineach'", "/opt/logstash/lib/logstash/inputs/file.rb:84:in
register'", "/opt/logstash/lib/logstash/pipeline.rb:135:instart_inputs'", "org/jruby/RubyArray.java:1613:in
each'", "/opt/logstash/lib/logstash/pipeline.rb:134:instart_inputs'", "/opt/logstash/lib/logstash/pipeline.rb:72:in
run'", "/opt/logstash/lib/logstash/agent.rb:139:inexecute'", "/opt/logstash/lib/logstash/runner.rb:168:in
run'", "org/jruby/RubyProc.java:271:incall'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.17/lib/stud/task.rb:12:in
initialize'"], :file=>"logstash/agent.rb", :line=>"151"} {:timestamp=>"2015-03-25T23:36:20.078000-0400", :message=>"Using milestone 2 input plugin 'file'. This plugin should be stable, but if you see strange behavior, please let us know! For more information on plugin milestones, see http://logstash.net/docs/1.4.2-modified/plugin-milestones", :level=>:warn} {:timestamp=>"2015-03-25T23:36:20.444000-0400", :message=>"Using milestone 2 input plugin 'exec'. This plugin should be stable, but if you see strange behavior, please let us know! For more information on plugin milestones, see http://logstash.net/docs/1.4.2-modified/plugin-milestones", :level=>:warn} {:timestamp=>"2015-03-25T23:36:20.580000-0400", :message=>"Using milestone 2 output plugin 'redis'. This plugin should be stable, but if you see strange behavior, please let us know! For more information on plugin milestones, see http://logstash.net/docs/1.4.2-modified/plugin-milestones", :level=>:warn} {:timestamp=>"2015-03-25T23:36:22.675000-0400", :message=>"+---------------------------------------------------------+\n| An unexpected error occurred. This is probably a bug. |\n| You can find help with this problem in a few places: |\n| |\n| * chat: #logstash IRC channel on freenode irc. |\n| IRC via the web: http://goo.gl/TI4Ro |\n| * email: logstash-users@googlegroups.com |\n| * bug system: https://logstash.jira.com/ |\n| |\n+---------------------------------------------------------+\nThe error reported is: \n no implicit conversion from nil to integer"}Config File
[root@rftwawebp01 ~]# ls /etc/logstash/conf.d/ | sort -n | while read line; do cat /etc/logstash/conf.d/$line; done input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/updateIvtAppForProfile.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/wc-dataimport-buildindex.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/CommerceServer70/bin/stagingProp.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/CommerceServer70/instances/hbc_solr/httplogs/access_act_log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/CommerceServer70/instances/hbc_solr/httplogs/error_act_log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/CommerceServer70/instances/hbc_stg/httplogs/trace.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/CommerceServer70/instances/hbc_stg/logs/createInstanceANT.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/CommerceServer70/instances/hbc_stg/logs/sdo.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/CommerceServer70/logs/acpload.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/CommerceServer70/logs/config_ant.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg_getPath.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/CommerceServer70/logs/config.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/CommerceServer70/logs/stagingProp.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/CommerceServer70/logs/wc-dataimport-buildindex.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/CommerceServer70/logs/wc-dataimport-preprocess.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/CommerceServer70/logs/wcnonroot.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/CommerceServer70/logs/wc-seo-url-load.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/Plugins/logs/solrWebserver/http_plugin.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/Plugins/logs/webserver1/http_plugin.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg/hamanager_config.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg/importConfigArchive.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg/keyGeneration.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg/SetSecurity.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg/SIBDefineChains.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg/SIBGenericDeployRAs.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg_solr/amjrte_config.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg_solr/collect_metadata.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg_solr/copyFiles.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBMIHS/logs/access_log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg_solr_create.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg_solr/createShortcutForProfile.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg_solr/generateProfileKey.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg_solr_getPath.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg_solr/hamanager_config.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg_solr/importConfigArchive.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg_solr/keyGeneration.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg_solr/SetSecurity.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg_solr/SIBDefineChains.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg_solr/SIBGenericDeployRAs.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBMIHS/logs/error_log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg_solr/wsadminListener.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg/wsadminListener.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/listProfiles.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/validateRegistry.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/ModifyCloudscapePermission.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/product_StartMenu.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/update/updateconfigCIM.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/update/updateconfig.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/update/updatePerfTemplate.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/wc-dataimport-buildindex.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/executeUpdateProfileIvtApp.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/activity.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/addNode.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/backupConfig.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/ffdc/nodeagent_exception.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/ffdc/PRstgHBCserver1_exception.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/iscinstall.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/nodeagent/native_stderr.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/nodeagent/native_stdout.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/nodeagent/startServer.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/nodeagent/stopServer.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg/amjrte_config.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/nodeagent/SystemErr.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/nodeagent/SystemOut_15.03.22_22.28.52.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/nodeagent/SystemOut.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/PRstgHBCserver1/native_stderr.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/PRstgHBCserver1/native_stdout.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/PRstgHBCserver1/out.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/PRstgHBCserver1/serverStatus.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/PRstgHBCserver1/ssl.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/PRstgHBCserver1/startServer.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/PRstgHBCserver1/stopServer.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg/collect_metadata.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/PRstgHBCserver1 /stopServer.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/PRstgHBCserver1/SystemErr.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/PRstgHBCserver1/SystemOut.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/PRstgHBCserver1/trace2.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/PRstgHBCserver1/trace.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/removeNode.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/server1/native_stderr.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/server1/native_stdout.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/server1/serverStatus.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/server1/startServer.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg/copyFiles.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/server1/stopServer.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/server1/SystemErr.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/server1/SystemOut.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/serverStatus.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/syncNode.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/Update76692.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg/logs/wc-dataimport-buildindex.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/activity.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/addNode.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/ffdc/solrServer_exception.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg_create.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/hbc_stg_solr/startServer.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/iscinstall.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/nodeagent/native_stderr.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/nodeagent/native_stdout.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/nodeagent/startServer.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/nodeagent/stopServer.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/nodeagent/SystemErr.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/nodeagent/SystemOut.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/removeNode.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/solrServer/native_stderr.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg/createShortcutForProfile.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/solrServer/native_stdout.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/solrServer/startServer.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/solrServer/stopServer.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/solrServer/SystemErr.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/solrServer/SystemOut.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/solrServer/trace-app.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/solrServer/trace-d1.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/solrServer/trace.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/syncNode.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/profiles/hbc_stg_solr/logs/Update76692.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { file { path => ["/opt/IBM/WebSphere/AppServer/logs/manageprofiles/hbc_stg/generateProfileKey.log"] type => "STG_WCS_LOGS" exclude => [ "*gz" ] } }
input { exec { command => "echo 'heartbeat'" interval => 1800 type => "heartbeat" tags => ["heartbeat"] } } input { exec { command => "ps -e -o user,pid,ppid,pcpu,pmem,time,vsz,rss,args" interval => 300 type => "OS_STATS" tags => ["ps"] codec => "line" } }
input{ exec { command => "/usr/bin/sar -u 1 1" interval => 300 type => "OS_STATS" tags => ["sar"] codec => "line" } }
filter { grok { match => ["path","%{GREEDYDATA}/%{GREEDYDATA:filename}$"] } if [filename] =~ "trace.log" or [filename] =~ "SystemOut.log" or [filename] =~ "SystemErr.log" or [filename] =~ "native_stderr.log"
} filter { if [path] =~ "access_" { grok { match => [ "message" , "%{COMMONAPACHELOG} (?\d+) \"%{DATA:referrer}\" \"%{DATA:agent}\" \"%{DATA:domain}\" True-Client-IP \"%{DATA:True-Client-IP}\" \"%{DATA:JSESSIONID}\" \"%{DATA:WAS}\" \"%{DATA:CACHED_RESPONSE>}\" %{DATA:REDIRECT}" ]
}
}
if [path] =~ "http_plugin.log" {\d+) failedRequests (?\d+) affinityRequests (?\d+) totalRequests (?\d+)" ,
"message" , "STATS: ws_server_group: serverGroupCheckServerStatus: Checking status of %{DATA:node}, ignoreWeights (?\d+), markedDown (?\d+), retryNow (?\d+), retryInSec (?[\d-]+), wlbAllows (?\d+) reachedMaxConnectionsLimit (?\d+)"
]
grok { match => [ "message" , "serverSetFailoverStatus: Server %{DATA:node} : pendingRequests (?
}
} filter{ if "sar" in [tags] { grok { match => [
sar -u 1 1
}
output { if "debugme" in [tags] { stdout { codec => rubydebug } } redis { batch => true # boolean (optional), default: false batch_events => 50 # number (optional), default: 50 batch_timeout => 60 # number (optional), default: 5
codec => plain # codec (optional), default: "plain"
} }