Jump to content
We've recently updated our Privacy Statement, available here ×

Use of log collector


honeybakliwal

Recommended Posts

http://community.jaspersoft.com/documentation/tibco-jasperreports-server-administration-guide/v62/using-log-collectors-0

 

With the above url I was able to create the log collector but unfortunately it encrypt and create logs and there is no way to decrypt the logs. So can anyone guide why are we getting an encrypted log file and if the output has to be in encrypted format than Please guide me how can we decrypt that.


Thanks

Honey

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Documentation is missing some info.....

by default server will encrypt logs/resources/datasnapshots because they contain sensitive data.

You can disable default encryption by setting "allowEncryption" to false in applicationContext-export-import-web.xml file.

if you want just import resources (incuding datasnapshot) for report replay then during import of export.zip file it will be decrypted automaticaly by target server if it have same set of encryption settings as source server.

if you want just decrypt logs then you should use buildomatic "js-ant" 

supported commands:

js-ant encrypt-diagnostics-data -DinFile=inputTarget -DencProps=encryptionPropertyFile
js-ant decrypt-diagnostics-data -DinFile=inputTarget -DencProps=encryptionPropertyFile

where "inputTarget" is path to file or folder for encryption|decryption and "encryptionPropertyFile" is path to file with encryption settings with folowing format:

crypto.algo=
crypto.transf=
crypto.block.size=16
crypto.key.bytes= 

you can pick algorithm, transformation and key from source server in "diagnosticDataCipherer" bean which is located in applicationContext-import-export-web.xml file, if those are not there then look at "importExportCipher" bean which is located in applicationContext-security.xml file

 

Link to comment
Share on other sites

  • 2 years later...

For those who need this, take in count that the setting to avoid the encryption was moved :

IMPORTANT: In TIBCO JasperReports® Server v6.3.0 and newer, this bean has been moved to ../WEB-INF/applicationContext-security.xml file.

Source: https://community.jaspersoft.com/wiki/how-disable-encryption-file-generated-log-collector

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...