Script Source using Python

Comments

1 comment

  • Avatar
    Graham Watts

    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:

    1. Install a collector on the server
    2. 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

    0
    Comment actions Permalink

Please sign in to leave a comment.