How to not register Background Job events in log


If you wish to leave comments or ask questions, please log on or sign up.

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Interested
Rating: 32
Joined: Oct 27, 2011
Company: Abaco Soluciones S.A.

Hello.

I have a problem. Our event log files are reaching several GB and grows fast.

I have noticed that a lot of events are from Background Jobs. We have background Job which is checking for new documents every minute and performs some actions when finds something new. Most of the time it is doing nothing, just checking for new records.

But it generates a lot of event logs. I do not want to disable event logs for user access or for object changing. Just for this particular Background Job.

So I am searching how to disable records for this particular event (all records, Start, Finish, Authentication etc..)

There is method SetEventLogEventUse(), but I can not figure out how to pass parameters to use it correctly. Syntax assistant does not help much.
Could you please be so kind and provide code sample? (consider that the name of background job is "BackJob1")

Thank you in advance.

Also. Is there any way to store event logs on a separate server? We have fast SSDs for the database and slow HDDs for 1c installation. But logs are written at the installation disk. So I am wondering if a lot of logs could badly affect app performance. If we have, for example, 100 event logs a second, we are reaching HDD IOPS.
Is there any way to pass logs to elasticSearch?

 
#2
People who like this:0Yes/0No
Interested
Rating: 32
Joined: Oct 27, 2011
Company: Abaco Soluciones S.A.

Somebody?

 
#3
People who like this:0Yes/0No
Administrator
Rating: 19
Joined: Dec 4, 2017
Company:

Dear Alexey,

As for managing the event log from your code, please take a look at Chapter 21. THE EVENT LOG of 1C:Enterprise Developer Guide (https://1c-dn.com/library/developer_guide/).

As for working with the event log's data via Elasticsearch, you can take a look at these articles (in Russian):
https://infostart.ru/public/545895/
https://xdd.silverbulleters.org/t/bigdata-logmanager-dlya-1s/62
http://1c.ruboard.ru/webinars/524404/


Best regards,
Vladimir Gurov

1C Company support team
 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)