Advertisement
Guest User

Untitled

a guest
Aug 4th, 2015
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.89 KB | None | 0 0
  1. lguser@monitorzone:~/logstash$ java -version
  2. java version "1.7.0_60"
  3. Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
  4. Java HotSpot(TM) Server VM (build 24.60-b09, mixed mode)
  5. lguser@monitorzone:~/logstash$ uname -a
  6. SunOS monitorzone 5.11 11.1 sun4v sparc sun4v
  7. lguser@monitorzone:~/logstash$ ./bin/logstash -f ../lg_electradb.conf --debug
  8. io/console not supported; tty will not be manipulated
  9. Reading config file {:file=>"logstash/agent.rb", :level=>:debug, :line=>"295", :method=>"local_config"}
  10. Compiled pipeline code:
  11. @inputs = []
  12. @filters = []
  13. @outputs = []
  14. @periodic_flushers = []
  15. @shutdown_flushers = []
  16.  
  17. @input_jdbc_1 = plugin("input", "jdbc", LogStash::Util.hash_merge_many({ "jdbc_driver_library" => ("ojdbc6.jar") }, { "jdbc_driver_class" => ("oracle.jdbc.driver.OracleDriver") }, { "jdbc_connection_string" => ("jdbc:oracle:thin:@192.168.10.144:1521:MYDB") }, { "jdbc_user" => ("********") }, { "jdbc_password" => ("********") }, { "schedule" => ("0,10,20,30,40,50 * * * * *") }, { "statement" => ("select reason_code,count(*) from transactions where message_type='1420' and transaction_local_date > sysdate - 60*24/(24*60) group by reason_code") }, { "type" => ("dbstat") }))
  18.  
  19. @inputs << @input_jdbc_1
  20.  
  21.  
  22. @output_stdout_2 = plugin("output", "stdout", LogStash::Util.hash_merge_many({ "codec" => ("rubydebug") }))
  23.  
  24. @outputs << @output_stdout_2
  25.  
  26. def filter_func(event)
  27. events = [event]
  28. @logger.debug? && @logger.debug("filter received", :event => event.to_hash)
  29.  
  30. events
  31. end
  32. def output_func(event)
  33. @logger.debug? && @logger.debug("output received", :event => event.to_hash)
  34. @output_stdout_2.handle(event)
  35.  
  36. end {:level=>:debug, :file=>"logstash/pipeline.rb", :line=>"28", :method=>"initialize"}
  37. Plugin not defined in namespace, checking for plugin file {:type=>"input", :name=>"jdbc", :path=>"logstash/inputs/jdbc", :level=>:debug, :file=>"logstash/plugin.rb", :line=>"133", :method=>"lookup"}
  38. Plugin not defined in namespace, checking for plugin file {:type=>"codec", :name=>"plain", :path=>"logstash/codecs/plain", :level=>:debug, :file=>"logstash/plugin.rb", :line=>"133", :method=>"lookup"}
  39. config LogStash::Codecs::Plain/@charset = "UTF-8" {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  40. config LogStash::Inputs::Jdbc/@jdbc_driver_library = "ojdbc6.jar" {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  41. config LogStash::Inputs::Jdbc/@jdbc_driver_class = "oracle.jdbc.driver.OracleDriver" {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  42. config LogStash::Inputs::Jdbc/@jdbc_connection_string = "jdbc:oracle:thin:@192.168.10.144:1521:MYDB" {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  43. config LogStash::Inputs::Jdbc/@jdbc_user = "********" {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  44. config LogStash::Inputs::Jdbc/@jdbc_password = <password> {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  45. config LogStash::Inputs::Jdbc/@schedule = "0,10,20,30,40,50 * * * * *" {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  46. config LogStash::Inputs::Jdbc/@statement = "select reason_code,count(*) from transactions where message_type='1420' and transaction_local_date > sysdate - 60*24/(24*60) group by reason_code" {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  47. config LogStash::Inputs::Jdbc/@type = "dbstat" {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  48. config LogStash::Inputs::Jdbc/@debug = false {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  49. config LogStash::Inputs::Jdbc/@codec = <LogStash::Codecs::Plain charset=>"UTF-8"> {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  50. config LogStash::Inputs::Jdbc/@add_field = {} {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  51. config LogStash::Inputs::Jdbc/@jdbc_paging_enabled = false {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  52. config LogStash::Inputs::Jdbc/@jdbc_page_size = 100000 {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  53. config LogStash::Inputs::Jdbc/@jdbc_validate_connection = false {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  54. config LogStash::Inputs::Jdbc/@jdbc_validation_timeout = 3600 {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  55. config LogStash::Inputs::Jdbc/@parameters = {} {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  56. config LogStash::Inputs::Jdbc/@last_run_metadata_path = "/home/lguser/.logstash_jdbc_last_run" {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  57. config LogStash::Inputs::Jdbc/@clean_run = false {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  58. config LogStash::Inputs::Jdbc/@record_last_run = true {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  59. Plugin not defined in namespace, checking for plugin file {:type=>"output", :name=>"stdout", :path=>"logstash/outputs/stdout", :level=>:debug, :file=>"logstash/plugin.rb", :line=>"133", :method=>"lookup"}
  60. Plugin not defined in namespace, checking for plugin file {:type=>"codec", :name=>"rubydebug", :path=>"logstash/codecs/rubydebug", :level=>:debug, :file=>"logstash/plugin.rb", :line=>"133", :method=>"lookup"}
  61. config LogStash::Codecs::RubyDebug/@metadata = false {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  62. config LogStash::Outputs::Stdout/@codec = <LogStash::Codecs::RubyDebug > {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  63. config LogStash::Outputs::Stdout/@type = "" {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  64. config LogStash::Outputs::Stdout/@tags = [] {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  65. config LogStash::Outputs::Stdout/@exclude_tags = [] {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  66. config LogStash::Outputs::Stdout/@workers = 1 {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"112", :method=>"config_init"}
  67. Error: oracle.jdbc.driver.OracleDriver not loaded. Are you sure you've included the correct jdbc driver in :jdbc_driver_library?
  68. You may be interested in the '--configtest' flag which you can
  69. use to validate logstash's configuration before you choose
  70. to restart a running system.
  71. lguser@monitorzone:~/logstash$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement