Event triggered data logging to database

I am new to ignition, here is what i am looking ar-

When a bit from plc tag is turn on, the system need to log a few
Data from the plc into a database and then the on-bit has to be turn off
.

Do i use event scripting? If yes how and also where can i find the scrting setail manual ? Or there is already a built in function
that i can use and where and how to to this?

The simplest approach would be a transaction group, triggering on that bit, using OPC Read mode to grab the rest of the data, and a handshake on success that turns the bit back off. For this to work properly, you’ll want to drag items directly from the OPC Browser to the transaction group’s item list – don’t use tags.