Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III
Specialist III

Stat & Logs

Hello
I've a problem using the project's stats and logs.
I want to save all the log in a database but I can't use my context variable to set the connection.
I've an error message :
Exception in component connectionStatsLogs
org.postgresql.util.PSQLException: La tentative de connexion a échoué. (connection failed)
How can I do to use my context's variable on the Stats and logs ?
Thanks !
Labels (2)
5 Replies
djugal
Contributor III
Contributor III

Try using Implicit context load property along with it.
_AnonymousUser
Specialist III
Specialist III
Author

The value of my contextes variables are set in a file. I think that's the reason why I can't use my contexte variable in the stat / log and in the implicit context ...
Is there a solution for that ? Or I have to set my variable in the context ?
Anonymous
Not applicable

Hi,
I don't know if it helps, but we use --context_param with key/value pairs when running jobs to fill the context for the database connection which is used for stats and logs. Maybe you can use a similar approach.
Good luck,
Arno
djugal
Contributor III
Contributor III

I had the same problem, solution is:
1. Project settings, Implicit context load - load your context file
2. In file path you can now write: context.path
3. in your job you have to create a new context variable path
Your job is done.
Anonymous
Not applicable

Thanks a lot for your help 0683p000009MACn.png
I use the solution of djugal and it works fine 0683p000009MACJ.png