Script Source using Python
I would like to query a database and transfer the fetched results to sumologic dashborsd. Im trying using pythin to create a script source. But its becoming bit difficult as there are no quite good tutorial or examples on how to do it. Could any one help me on this?
-
Hey Shenbaga,
What type of logs are you trying to get out of the database, and what type of database? Also, how do the logs get written to the table (where do they come from)?
Here is how most customers get logs out of a database and into Sumo Logic:- Install a collector on the server
- Use a Script Source
The script logic will depend on what the log looks like and the database type. Usually you can run our script source every 15 minutes for example to read the data from the table and collect it. It might help to store a 'last log collected' timestamp in the script directory so the script knows how far back to read logs in the table.
Hope this helps!
Thanks,
Graham
Please sign in to leave a comment.
Comments
1 comment