-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebServerLog/ELFFields not working #983
Comments
I ran createDomain with two different values in th elffields and both were as expected in the config file. Do you have two different admin servers in the config.xml ? Your model snippet doesn't show the name of the server you are changing |
There is one AdminServer only and two OsbServers. ELFFields setting doesn't work for any of them. |
What domain_type are you using? |
The issue is both with domain_type OSB & BPM |
We don't support OSB and BPM. Could you provide either one of your domain typedef files? OSB or BPM. I would appreciate it. |
Is it anywhere documented that WDT behavior is such dependent on the domain_type?
|
No the comments just mean that I didn't have a typedef file on hand. I suspect since i cannot reproduce this with domain type WLS, that the template is changing the field after being set. |
@pwninja WDT is a wrapper around WLST so by definition, the behavior of createDomain.sh is heavily influenced by the "JRF_12CR2": {
"baseTemplate": "Basic WebLogic Server Domain",
"extensionTemplates": [
"Oracle JRF WebServices Asynchronous services",
"Oracle WSM Policy Manager",
"Oracle Enterprise Manager"
],
"customExtensionTemplates": [ ],
"serverGroupsToTarget": [ "JRF-MAN-SVR", "WSMPM-MAN-SVR" ],
"dynamicClusterServerGroupsToTarget" : [ "WSMPM-DYN-CLUSTER" ],
"rcuSchemas": [ "MDS", "IAU", "IAU_VIEWER", "IAU_APPEND", "OPSS", "STB" ]
} Some of the domain templates have Your issue is on my list to look at. However, as you might be aware, we do not officially support any upper stack FMW products. It is possible to create domains some upper stack products by creating your own typedef file but this is where the support gets blurry. While we want to make sure the core WDT product does not contain bugs that prevent users from making progress with custom typedefs, we cannot support these upper stack products without help from the product development teams that own these products. |
@pwninja The culprit for the log field being overwritten is the #!/usr/bin/python
# turn on diagnostic context enabled flag to admin server and all managed servers
# enable extended log format (ELF) on the adminserver and all managed servers
try:
cd('/')
servers = cmo.getServers()
for server in servers:
# turn on diagnostic context enabled flag to admin server and all managed servers
server_name = server.getName()
cd('/Server/' + server_name)
create(server_name,"ServerDiagnosticConfig")
cd('ServerDiagnosticConfig/' + server_name)
set('DiagnosticContextEnabled','true')
# enable extended log format (ELF) on the adminserver and all managed servers
cd('/Server/' + server_name)
create(server_name, 'WebServer')
cd('WebServer/' + server_name)
create(server_name, 'WebServerLog')
cd('WebServerLog/' + server_name)
set('LogFileFormat','extended')
set('ELFFields', 'date time cs-method ctx-ecid ctx-rid cs-uri sc-status bytes')
except:
print "Warning: failed to enable the diagnostic context enabled flag."
print "Warning: failed to enable extended access log format." In order for WDT to be able to set this field properly during createDomain, we would need to revise how the Server/ServerTemplate fields are being written so that they are written in "Phase 2" (after the domain is written to disk the first time). We will discuss this internally to determine the feasibility of making this type of change. |
Hello, Why is this closed? I tried WDT 2.1.1 and I still see the issue. TAM |
@textanalyticsman we restored what we believed to be the previous behavior (because we believed you that this worked previously). With the current code base, the Phase 2 application of the model is still happening before the The only other alternative would be for you to run |
Closing with PR #1115. This fix is available in |
I am trying to configure ELFFields in Weblogic domain. using createDomain.sh, but it is not getting reflected.
snippet of topology configuration:
This is just an example. Actually I need to for the custom fields, but the above one still doesn't work.
Resulting config.xml section is:
It always defaults to
date time cs-method ctx-ecid ctx-rid cs-uri sc-status bytes
.I didn't find any related information in the WDT log file.
Oracle Weblogic version is 12.2.1.4
WDT version is 1.9.17. I also tried 1.9.8 as it was mentioed to be working fine in another ticket (#817), but maybe it works only in the updateDomain.sh scenario.
The text was updated successfully, but these errors were encountered: