Giter Club home page Giter Club logo

wlsloginspector's Introduction

Weblgoic Server Log Error Finder

This python script uses the WebLogic Server REST Administration API to

  1. find all of the server logs in a domain
  2. read through the logs and capture any messages with the severity of "Error"
  3. output the high level statistics to the command line
  4. output the findings to errorReport.html. This contains the high level statistics, as well the all of the error messages

Running the script

python logInspect.py

For example

python logInspect.py

Pleas enter the WLS Server Details
-------------------------------------------

Please enter the server and port e.g localhost:7001  54.70.166.152:7001
Please enter the weblogic user name: weblogic
Please enter your weblogic user passowrd:

Reading AdminServer : DataSourceLog
Reading AdminServer : DomainLog
Reading AdminServer : ServerLog
Reading osb_server1 : DataSourceLog
Reading osb_server1 : ServerLog
Reading wsm_server1 : DataSourceLog
Reading wsm_server1 : ServerLog
+----------------------+--------------------------+----------+--------+
| Server               | State                    | Health   | Errors |
+----------------------+--------------------------+----------+--------+
| AdminServer          | running                  | ok       |   1008 |
| osb_server1          | running                  | ok       |      0 |
| wsm_server1          | running                  | ok       |      0 |
+----------------------+--------------------------+----------+--------+


+----------------------+-------------------------+-----------+--------+
| Server               | Log                     | Duration  | Errors |
+----------------------+-------------------------+-----------+--------+
| AdminServer          | DataSourceLog           | 00:00:00  |      0 |
| AdminServer          | DomainLog               | 00:00:06  |   1006 |
| AdminServer          | ServerLog               | 00:00:07  |      2 |
| osb_server1          | DataSourceLog           | 00:00:00  |      0 |
| osb_server1          | ServerLog               | 00:00:08  |      0 |
| wsm_server1          | DataSourceLog           | 00:00:00  |      0 |
| wsm_server1          | ServerLog               | 00:00:04  |      0 |
+----------------------+-------------------------------------+--------+

wlsloginspector's People

Contributors

andrewdormanrxr avatar

wlsloginspector's Issues

host and port not accepted as standard input

Hi whenever I try to run this python code, I keep on getting below error is this not the correct way to provide input ?

[user@server1 src]$ python logIns.py
()
()
Please enter the WLS Server Details

()
Please enter the server and port e.g localhost:7001 10.22.31.94:8011
Traceback (most recent call last):
File "logIns.py", line 325, in
run()
File "logIns.py", line 141, in run
wlsServerUrl = input('Please enter the server and port e.g localhost:7001 ')
File "", line 1
10.22.31.94:8011
^
SyntaxError: invalid syntax

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.