Separating logs in OSB based on project - is this possible?

Hi,
I'm using OSB 11.1.1.3.0 and I'd like log messages generated from the log action to go to a different log file based on OSB project. I've found messages on the forum that discuss this, for example:
alsb logging
These posts only explain how to log messages from ALL OSB projects in a domain to a SINGLE log file, which I already have working using a LogFilter, but I'd like to take it a step further and log messages to a different log file depending on the specific project where the log action was invoked.
I want to use a method that involves LogFilters rather than explicit OSB Reporting or File business services, to keep it unobtrusive from the perspective of the application developer.
I've checked the output of the LogRecord methods and I don't see anything that will let me get a handle on the specific project a log originates from, but I've noticed that at the start of each log message information is logged inside [], for example:
[raiseEvent Operation, raiseEvent Operation_request, stage1, REQUEST]
This looks promising but unfortunately it doesn't always contain the OSB project name (sometimes it does, but not in this example).
So my questions are:
1. Has anyone successfully split logs based on OSB project using the WLS/JDK logging system?
2. Is there a way to specify what is logged in the [] at the start of each log message?
Any help is much appreciated.
Thanks,
Jason

It has been done in a previous client by the then BEA in a different manner. Instead of using any java callouts or log4j code within osb, that task has been shifted to a weblogic startup class. So this is how it works:
At OSB
Use Log action to record log messages. Put appropriate annotation based on the project to categorize the log messages into different files later.
Example: Log : Request Message Processed succesfully. Annotation: OSB_LOG: <Project_Name> Severity: Info. Note Annotation has 2 parts : a hard coded OSB_LOG and a variable +<Project_Name> part+
This log message gets recorded in the manged server log file as : Info: OSB_LOG:<Project_Name> Request Message Processed successfully
At WLS
You have to configure the logging settings of the server so that this log message reaches the domain logger. For e.g. server should be configured to broadcast to domain logger at severity info and above if you want to get the above message
Startup class
This startup class will be deployed to the admin server. What it does is in the startup method gets the domain logger and registers a custom handler to it. The custom handler is implemented to inspect each LogRecord it gets from domain logger to check for the presence of hard coded string (OSB_LOG) . If the record has this string then it understands this log record has come from OSB application and not from any WLS subsystem and hence this message is important to it. Next step is to determine the logger name by getting the <Project_Name> from the Log Record. It creates a new logger with the same name as that of Project_Name and logs the message with the same severity as in the original message.
One key advantage of this is that is if your OSB is deployed to a cluster, you will get log messages from all managed servers for that particular project ( or a proxy service) at one location.

Similar Messages

  • NTSC project  modified to PAL project is this possible?

    I have a project that i am working with that has 3 menus, 7 tracks & 17 scripts.
    there are two DVD's in the "set" each one is the same... just different video tracks... essentially its a 2 disc set that i need one version of NTSC (done) and one PAL version.
    I have created the NTSC project first, but before I create the PAL versions i wanted to know if anyone had come up with a way of just replacing the project assets & video assets to PAL?
    I have tried removing all the video off all the tracks and deleting them from the project (this works with no menus & no scripts to convert to PAL) Next I figured it was the menus so I changed out the video assets of the menus and transitions to PAL.mov's but they are lower quality and the project still will not switch to PAL.    
    any ideas before i recreate all of those scripts and menus in PAL?
    as a side note just to make sure... Dolby files do not matter right? I dont think i need to make PAL versions of audio.. i couldnt find a way to do it anyway... just wanted to double check that thought.
    Thank you.
    -bryan

    if anyone is wondering... the answer is no... rebuild it from scratch.

  • Batch Rename based on Content, is this possible????

    Hello all,
    I have a large amount of PDF files that I need to rename. The PDF files are contracts relating to individual companies and I need to place the company in the title.
    right now they are saved with numbers at the end: Contract_1, Contract_2, etc.
    I need to have it as: Contract_Smith Co, Contract_ACME, etc.
    Does anyone know of a PDF renaming (or splitting program) program that can replace the numbers with a specific line of text from within the pdf itself?
    Any help would be greatly appreciated.
    Thanks.
    Kevin

    Hey thanks a lot, unfortunately I am unsure of how to edit Meta data, how would I do that for all 300 at once, does it help to know that I created the contracts using InDesign's data merge system
    thanks a lot, Kevin

  • Logging in OSB

    Hello,
    Can I have separate log files for each project in OSB ?
    If yes, then please give me the steps to do so.
    thanks,
    salil

    Salil,
    I have configured the same using below post :
    http://www.yenlo.nl/nl/custom-logging-in-osb-using-java-call-out/
    Separating logs in OSB based on project - is this possible?
    http://www.javamonamour.org/2011/07/osb-and-log4j.html
    Regards,
    Abhinav Gupta

  • I have a mac book pro i want to have another monitor added and open garageband with 2 projects open is this possible.

    I have a mac book pro I want to use 2 monitors and have garageband open with 2 projects is this possible?

    GarageBand can open only one project at a time.  Project are treated differently from audio files; you can have many audio files open in QuickTime or other audio players, but GarageBand will always close the current project when you open a new one.
    If you have the newest GarageBand 10.0 and the previous version, GarageBand '11, version 6.0.5, you can open one project in GarageBand 10.0 and one project in GarageBand '11.
    However, you cannot drag and top between the windows or transfer media. And once a project has been converted to GarageBand 10 format, it can no longer be opened by GarageBand '11.

  • Custom logging in OSB

    I want to create a common proxy service in OSB which can be called by other services for logging body, fault etc. I intend to log to three different channels : File, Queue & Database. Now the approach is
    1. While executing any OSB process, accept a "logDestination" input from the user.
    2. Within the OSB process, just do a service callout to the common OSB Logging proxy service.
    3. Logging OSB proxy service will read the "logDestination" value and based on that route to a
    file proxy service, queue proxy service etc to write logs to respective channels.
    Will this work? I tried doing this but i am unable to create and read the "logDestination" value in my common OSB logging proxy service (its in a different project).
    Need help in doing this. Thanks!

    >
    Can you please suggest a better approach ?
    >
    Well, I don't know your requirements, but concerning logging I'm quite sure that client can't (and shouldn't) decide where to log in service implementation. In other words, you should decide whether to log in file, queue or db in proxy service flow and without any explicit client input.
    >
    The problem I am facing is that I am unable to propogate the value of "logDestination" to my OSB logging proxy service. In addition to this variable value I also need to propogate the $body of the OSB process to my common logging service.
    I hav a service callout (within the stage error handler) from the OSB process to my common service. How can i propogate all the above mentioned details to the common service at the same time ? I am pretty new to OSB, so plz excuse me if thats a basic question.
    >
    It seems you are not asking this question for the first time. :-)
    How to call a OSB proxy service from a different OSB process?
    I hope my answer in that thread should help you.

  • How to configure JCA DBAdapter logging in OSB 11.1.1.4.0?

    How to configure JCA DBAdapter logging in OSB 11.1.1.4.0?
    I have a project deployed to the new 11.1.1.4.0 version of OSB.
    Under previous versions, a $DOMAIN-diagnostic.log file was maintained and contained a record of the activity of the various JCA DB pollers I had configured.
    In the most recent version, this is not the case.
    I'd like to know if I can restore the old behaviour...
    The best solution I could come up with is to change a setting in $DOMAIN/alsbdebug.xml, thus:
    <java:sb-debug-logger xmlns:java="java:com.bea.wli.debug">
    <java:alsb-jca-framework-adapter-debug>true</java:alsb-jca-framework-adapter-debug>
    </java:sb-debug-logger>
    With this change the pollers put their logging output into the $DOMAIN.log file.
    How can I get the output back into $DOMAIN-diagnostic.log?

    Alex,
    Oracle B2B does not support custom HTTP listening channels as of now. There are below two default HTTP listening channels for async Request-Response scenarios -
    http://host:port/b2b/transportServlet or http://host:port/b2b/httpReceiver
    and below one is used for synchronous request-response scenarios -
    http://host:port/b2b/syncreceiver
    where host - B2B server host and port is B2B server port.
    Regards,
    Anuj

  • Using Log4j2 in weblogic for logging in OSB

    Hi All,
    I was trying to use log4j2 logging in OSB. I did below mentioned steps:
    Copied external jars "log4j-api-2.0-beta7" and "log4j-core-2.0-beta7" into %Domain_Home%\lib directory.
    Placed wllog4j.jar into same location.
    Created log4j2.xml and placed it into %Domain_Home% directory.
    Modified setDomainEnv.cmd in %Domain_Home%\bin directory to include log4j2.xml location(set LOG4J_CONFIG_FILE=%DOMAIN_HOME%\log4j2.xml) and enable log4j logging by setting java option(-Dwlw.log.Log4jLoggingEnabled=true)
    Content of log4j2.xml looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration status="debug" name="MyApp" packages="">
       <appenders>
          <RollingFile name="RollingFile" fileName="C:/Oracle/MiddlewareNew/user_projects/domains/base_domain/servers/AdminServer/logs/services.log" filePattern="logs/$${date:yyyy-MM}/app-%d{yyyy-MM-dd-HH}-%i.log.gz">
             <PatternLayout>
                <pattern>%d %p %m%n</pattern>
             </PatternLayout>
             <Policies>
                <TimeBasedTriggeringPolicy/>
                <SizeBasedTriggeringPolicy size="10 MB"/>
             </Policies>
             <DefaultRolloverStrategy max="10"/>
          </RollingFile>
          <Async name="Async">
             <appender-ref ref="RollingFile"/>
          </Async>
       </appenders>
       <loggers>
          <root level="debug">
             <appender-ref ref="Async"/>
          </root>
       </loggers>
    </configuration>
    After setting all the above things, when i am starting weblogic server then i am getting parsing exception in console with error like below:
    log4j:ERROR Parsing error on line 3 and column 44
    log4j:ERROR Document root element "configuration", must match DOCTYPE root "null
    log4j:ERROR Parsing error on line 3 and column 44
    log4j:ERROR Document is invalid: no grammar found.
    log4j:WARN The <configuration> element has been deprecated.
    log4j:WARN Use the <log4j:configuration> element instead.
    I am not able to figure out what is going wrong here. In my information log4j2 has done away with namespaces, schema/dtd references and looks like still weblogic is using log4j 1.2 reference. I would really appreciate of one can tell me what is going wrong here.
    There was reference to log4j-1.2.8 in my setDomainEnv.cmd as
    set POST_CLASSPATH=%POST_CLASSPATH%;%ALSB_HOME%\lib\version.jar;%ALSB_HOME%\lib\alsb.jar;%ALSB_HOME%\3rdparty\classes;%ALSB_HOME%\lib\external\log4j_1.2.8.jar;%DOMAIN_HOME%\config\osb
    could this be causing issue? If yes then how can we remove old references of log4j 1.2(if i am removing this entry from here then log4j is giving error for classes not found).
    Any input will be helpful.

    The log4j:ERROR messages are not coming from Log4j 2 and are most likely from Log4j 1.x. Somehow Log4j 1.x must be getting the log4j2 configuration.

  • Report to get WBS elements based on Project Type

    Dear Experts,
    Is there any report exists in Project Systems to get WBS elements based on Project Types.
    This we can check in the table PRPS-PRART.
    But i need to know the availability of T Code.
    Thanks in advance.
    Regards,
    Srinivasareddy Y

    Hi,
    If its a one time requirement using CN43N might help in meeting the requirement. However, first it has to be executed for a certain range of projects and then the layout will have to be changed accordingly. Instead of doing this if a custom report is developed with the input parameter as "Project Type" it would make it much more easier. You can even have the F4 search option for the input parameter. Doing this will help if the report is going to be used frequently in the future.
    Take your call and proceed accordingly.
    Regards,
    Gokul

  • Is there standard report to check actual (GR) based on project/ WBS

    Hi All,
    Is there any standard report to check actual based on project / wbs. At the moment i know the tcode CJ74.
    Is there any other report ?
    Thank you.
    Best Regards,
    Denis Evitanto

    Hi,
    Report (S_ALR_87013542) is most effective report for projects as planned cost / actual cost / Project profitability will be obtained from there.
    Planed cost of the project will be obtained from the report. E.g. if you are doing project costing through Cost elements, in the mentioned report, all the cost planned through various Cost elements will be obtained. After posting actual cost to project, there can be comparison of planned cost Vs actual cost.
    Hope this will help you.
    Best Regards,
    Rakesh Pradhan

  • To find Manager id based on Project id

    Hi ABAPers,
                       This is kishore. I am new to ABAP-HR
    Can any one tell me the logic based on Project-id (of its type HRP1001-OBJID) to find the Manager id, Manager Name, Manager Email.
    I know the logic find name and mail-id, but I need Manger id of corresponding Project.
    Any one having working knowledge on PS module I hope they have good idea about this
    Please help me in the format of sample code or Function Modules.
    Thanks In advance
    Kishore kumar

    Hi
               Actually projectid and their relation objectid avialble in
    PROJ table .But Based on that how to find corresponding
    project manager id.I hope i give clear information to u.
    regards,
    kishore.

  • Report based on project codes

    Dear all,
    I have a number of projects in our system with different codes and I would like to produce a report with the various Business Partners (BPs) with their different account balances displayed as per the various projects.
    This is very important because a BP can have more than one project code assigned to them .
    I have tried the Query Generator but this is not working for me since the query generates aggregated values of account balances rather than separated balances as per a specific project code.
    Any help will be appreciated.
    Regards,
    Davis M Onsakia

    Hi
    Please Check if the following solution work for u
    in SAP B1 2007 PL 08
    In most of financial  report there is a tab named expansion press it cheek the project code and  select the project code or range of project code and also BP  u will get transaction related only to the selected BP and selected  project Code .
    please let me know if it works
    I will help you if it does not work .
    Avtar Singh

  • Newbie looking for maven-based web projects

    I'm looking looking for maven-based web projects so I could learn how to orginize and configure code and configuration files respectively. Thx in advance.

    Tones of good material exists at the Maven2 site:
    http://maven.apache.org/
    Another very good place where to find information:
    http://www.sonatype.com/book/
    To search for free jars (very useful)
    http://www.mvnrepository.com/search.html
    It is kind of difficult to start, but it worth the effort.
    I cannot imagine to start a project without Maven + Continuum

  • Repot based on Project type

    Hi Experts,
    Is there any std. report in ps basing on project type?
    i have searched. But i could not find the same in PS STD Reports.
    pl. suggest.
    Regards,

    Thank you very much for the suggestion.
    It is worked.
    Regards

  • Referencing RichEditableText in Flex based desktop project gives a warning

    My setup is Flash Builder "Burrito", Flex SDK 4.5.18623
    When referencing RichEditableText in ActionScript code, Flash Builder displays the following warning:
    Is this bug logged at Adobe JIRA somewhere?

    See this workaround for using the latest nightly builds with Flash Builder Beta 2 http://forums.adobe.com/thread/559312?tstart=0.
    Jason San Jose
    Quality Engineer, Flash Builder

Maybe you are looking for

  • Windows 7 Home Premium with 802.1x problems with the Authentication

    We have problems with  OS Windows 7 Home Premium 802.1x, the message in ACS: EAP-TLS or PEAP authentication failed during SSL handshake ACS v4.1 We have OS Windows 7 Professional and doesn´t have problems with the authentication. I hope that you can

  • How to change material discription at sales order item level ?

    Dear Gurus,         We have some requirement need to change material description at sales order item level , but in system it is in disable mode how to change that  into change mode in sales order item level? Thanks in advance Regards Venkat

  • A question about mapping

    ok, my problem is this : I use /faces/* mapping and i want to be able to put my links like this : <h:outputLink value="login.jsp"> <h:outputText value="Login" /> </hLoutputLink> If do it like this then my apache doesnt find "the FacesContext" (i know

  • Connecting powerbook to a macbook to display on both screens

    I would like to display an iphoto slideshow on two screens. My slideshow is on a G4 15" powerbook and I would like to be able to display it on that screen and a macbook at the same time. How do I connect the two together and output to both screens fr

  • Add Fibre Channel LUN to Server 2012 R2

    I'm having difficulty configuring SAN storage attached to a pair of 2012 R2 hosts.  I'm building a two node Hyper-V cluster.  Bear in mind this is an operation that I'm very familiar with using VMware.  I'm simply trying to get the windows hosts to s