How to not register Background Job events in log



The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Interested
Rating: 34
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?

   Quote selected text in answer   Name
#2
People who like this:0Yes/0No
Interested
Rating: 34
Joined: Oct 27, 2011
Company: Abaco Soluciones S.A.

Somebody?

Quote selected text in answer   Name
#3
People who like this:0Yes/0No
Administrator
Rating: 22
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
Quote selected text in answer   Name
#4
People who like this:0Yes/0No
Interested
Rating: 34
Joined: Oct 27, 2011
Company: Abaco Soluciones S.A.

Quote
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/).

Vladimir, I have read and tried to implement the desired behavior but without luck. The manual is not that clear. Could you please provide the code to completely omit log events from particular Background jobs without loosing other type of logs, like user access and data modification.

The platform generates so much logs that the server is running out of disk space because of those events.

Quote selected text in answer   Name
#5
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Mar 10, 2017
Company: Rufinor

Hello, the easiest way is to switch on 1c technological log. With technological log you can filter events you want and set it on a separate disk drive. It is being set up easily, you just need to save xml file with specific format to 1c directory. As to event log you can switch it off or shrink in cofigurator in such a case.

Quote selected text in answer   Name
#6
People who like this:0Yes/0No
Interested
Rating: 34
Joined: Oct 27, 2011
Company: Abaco Soluciones S.A.

Alex Ogourok,
With technological blog I will lose the possibility for the users to view log data (like who modified some document etc.). I want to stick with the event log, but filter which events are stored. Basically there is no need to store every minute that scheduled job was ran.

Quote selected text in answer   Name
Subscribe
Users browsing this topic (guests: 0, registered: 1, hidden: 0)