Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Accessing Essbase error log with Jython script

samlambertApr 15 2020 — edited Apr 16 2020

Hey guys, I'm trying to write a script that accesses the Essbase error logs. I know I have to connect to the Essbase Java API. I have some code below that will connect to Essbase and get all the applications and then write them to a file.

Is there a 'get' method, or a way for me to select the Essbase error logs for a particular application? I want to get the error log for a specific application and then scan the log for certain errors.

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

## Import libraries

from com.essbase.api.session import *

from com.essbase.api.domain import *

## Set up instance and login

essInst = IEssbase.Home.create(IEssbase.JAPI_VERSION)

essLogin = essInst.signOn("username","password", 0, None, "embedded", "hostname:port/aps/APS")

## Get list of applications

lst = essLogin.getApplications()

q = lst.getAll()

## Write to file

filename  = open("APP.txt",'w')

for item in q:

  filename.write(str(item) + "\n")

   

## Close connections

essInst.signOff()

filename.close()

Comments