Category: Blog

  • Claude Code Helps Analyze Test Data Manager Log Files

    I had a customer ask about analyzing their Test Data Manager (TDM) usage to determine how many people were protecting data in dev databases and how often. TDM creates log files each time it runs, but analyzing those isn’t easy.

    Or is it? Claude Code thinks it is.

    This is part of a series of experiments with AI systems.

    Consolidating Log Files

    I didn’t want to grant extra rights or permissions, and I like the loosely-coupled idea of tools, so I manually copied over log files from a couple locations into a new repo spot. This was a test to see if Claude Code could help me with something I’ve done in past with other types of files.

    TDM puts log files in Program Data, which can be locked down on many machines, so I copied things over to a location on another drive. In this case, I created a repo with a folder called TDM. In there I copied the Anonymization and Subsetter folders from Program Files. You can see the Anonymization folder contents below.

    2026-01_0212

    I opened a few random files to see what was inside and had an idea of what I’d look for in here if I were doing the analysis. I used this to help me craft a prompt.

    With that in mind, I have a good place to start, so let’s go see what my assistant, Claude, can do.

    A Quick Prompt

    I ran Claude from the TDM folder with this prompt: I have a number of log files in the subfolders here. What I am looking for is a summary of how much activity is in those log files, by month and year. The anonymization log files
    have “started” records of an “inf” type fro the classifying, the mapping, and the anonmyizing. The subsetter has “subsetter started” . Build a script that can analyze this data and
    produce summaries for the activities

    Claude agreed to help me with this response. It agrees to help summarize the data and then starts to read the files in the sub folders, looking at a sample of each. I

    2026-01_0213

    Claude then notes it understands the structure and starts to write code.

    2026-01_0214

    I have no idea how long this took as I left it alone and went to work on other things. I was finishing another piece, so a few times I approved actions to re-read files and execute the script. I know that it was less than 10 minutes, but could have been much quicker.

    When I saw the script had completed, I also had a summary. I’ll paste in the text below to make it easier to read.

    Claude’s Summary

    Perfect! I’ve created a Python script that analyzes your log files and produces a summary of activities by month and year. Here’s what the script does:

    Script Features

    The script (analyze_logs.py) analyzes:

    Anonymization logs:
    – Classify – Tracks “Classifying database” activities (task=”classify”)
    – Map – Tracks “Creating masking file” activities (task=”map”)
    – Mask – Tracks “Masking database” activities (task=”mask”)

    Subsetter logs:
    – Subsetter – Tracks “Subsetter started” activities

    Summary Results

    Your current logs show:
    – 163 total activities across both tools
    – Activity from February 2024 to February 2025
    – Peak activity in January 2025 with 69 activities (10 classify, 4 map, 8 mask, 47 subsetter runs)
    – 2025 is on track to exceed 2024 activity (88 vs 75 in the first 2 months)

    Usage

    Simply run:
    python analyze_logs.py

    The script automatically scans the Anonymization/ and Subsetter/ subdirectories and provides:
    1. Monthly breakdown of all activity types
    2. Yearly summary totals
    3. Grand totals across all time periods

    The script handles both structured JSON logs and readable text logs, making it robust against different log formats.

    Leading Me On

    At this point, I was ready to commit and save this code, but I noticed that there was a grayed out prompt already added for me at the CLI. It said: Export the summary to CSV file

    I hit Enter, and then Claude proceeded from here. I’ll show the prompt and then how Claude started to edit it’s own work.

    2026-01_0215

    Once this completed, I approved the action to run the script again and saw these results. I got a summary of the changes, and then two CSV files with the results. I hadn’t committed code yet, so in the repo, you can see the files yourself. These are in my AIExperiments repo on GitHub: TDM folder in GitHub

    I looked at the results and it looked pretty good to me. I don’t run TDM a lot on this machine, but the results seemed to match up with the dates of the log files. For example, there are log files for the anonymization (classify, map, mask) for Nov 2024, but they’re empty, so these are excluded from the csv summry.

    2026-01_0216

    What’s also neat is that the next pre-populated prompt asks if I want charts. I hadn’t thought about this, but I decided to just hit enter and see. Claude wrote a new file and then run it (I approved this) and had charts in a subfolder.

    I re-ran the TDM process today (Jan 14) to see if things worked. I got a new log file in the subsetter folder and when I ran the python script manually, I see new executions.

    2026-01_0226

    Very cool.

    Summary

    This is a quick app that is useful and it helps not only me, but the customer. In fact, lots of TDM customers and our SEs might find this useful. This is the type of data analysis I’ve done in the past, trying to look through log files and parse them, which can be a tedious task. Claude Code, (or another AI) makes this easy to generate and get working.

    Of course, this needs a bit more testing to ensure it’s accurate and I’m guessing there might be some edge cases or rough edges that need smoothing out but is that any different than an app I or someone else wrote? The app is only as good as my prompting and testing, but this was quick enough that I could either alter it myself, or let Claude do it.

    After my first Claude Code session, I had USD$1.09 left of my $5. After this, I have $0.17. I’ll buy buying more credits or subscribing as I am finding Claude to be very useful.

  • PowerPoint to HTML with Claude AI

    I had an idea for an animated view of a sales tool, and started to build this in PowerPoint. I decided to switch to Claude and ended up with an interactive one-page web app. This post looks at how I approached the process.

    This is part of a series of experiments with AI systems.

    Editing in PowerPoint

    Someone sent me a slide in PPT and asked me for feedback. I wanted to adjust the look, and started to make changes in PPT. I was moving boxes, changing a few colors, and adding something that I thought would have more impact.

    I was about to start building some animations to show how I envisioned things working when it occurred to me this would be a better as an interactive, more self-service item.

    I opened Claude and this was my prompt. I uploaded an image of my slide.

    2026-01_0265

    In 3 minutes, I had a working one-page web app that I could click around in and see changes. I had one more prompt as my gauges weren’t working correctly.

    2026-01_0271

    I took another moment to fix the UI as it had 3 of my 5 items on one line and then I had to scroll to see the others. My last prompt fixed this.

    2026-01_0272

    After getting a slide asking for feedback from a colleague, and spending 10 minutes futzing in PPT, I switched to Claude and had a working, interactive showcase of what my mind was thinking,thanks to Claude (free Claude).

    I sent it back and my colleague loves it. I don’t want to quite show this here, as we may use this in Redgate and someone will need to make it waaaaayyyy prettier than I can or even prettier than I can describe to the LLM.

    How Useful is This?

    You might say that going from an image or slide to an interactive picture isn’t useful. You might be right, and to be fair, I’ve never had the need to do this.

    However, if I think a little wider about the idea of making something interactive or expressive, I have had the need for this type of thing before.

    For example, I’ve needed a list of things that I want people to do and check them off. I’ve built this in word, with the little checkboxes, and given it to people. However, they have to remember to save as, or where it is, etc. Here, I could just give a URL to this in docs (or in code) and people could open it and live check boxes as they’re walking through a procedure. I could even have it change colors or notify when everything in a step is done.

    Or display a warning if a step is skipped. How useful would that be?

    I  have also had the need to ask a group of people a question and get their answers or ratings. How easy would it be to have a link I can send, detect the user (I’m sure AI can add this) and then record their vote, letting them override their decision at any time?

    What about a page people can use to plan vacation or anything and send me back their decisions? This saves everything in a file.

    What would your imagination let you build?

  • The 2026 Redgate Summit Series

    The last few years, Redgate has run a few Redgate Summits in different places. We’ve done one every year in London and added a few other cities along the way.

    This year, we have 4 scheduled (so far). The schedule is listed here, and I’d love to meet some of you at the events. I always enjoy hearing about people’s challenges as well as their complements and criticisms of our software. I find it invaluable hearing both.

    There may be another one or two coming, with plans up in the air, but we’ll see. Personally I like these events and I’d like to see us add one more in the late summer or fall.

    We run these Summits for customers to better get to know us and become closer partners. We want to meet our customers’ needs and ensure we are approaching our development in a way that helps customers get more value from our tools.

    A few of our tracks are generic, not necessarily related to Redgate, but they are full of topics that we think are important, and we present them based on our knowledge, research, and success. The advocates often run these tracks to bring our expertise to the presentations. We also have a Redgate track, where you can see specific solutions or ask detailed questions of our engineers.

    Hopefully you can join us at one of these events this year (or next year).

  • Monday Monitor Tips: SQL Auditing Preview

    One of the features we advocates have been advocating for is a better way to track security changes in your SQL Server instances. The first slice of this work is in preview (as of 12 Jan 2026) and this post looks at what’s available.

    This is part of a series of posts on Redgate Monitor. Click to see the other posts.

    Tracking Security Changes

    The first iteration of tracking security changes queried instances and databases for information, stored it, and then compared it with other queries to determine what had changed. This was done hourly, and worked well, but it could not determine exactly when a change was made.

    SQL Audit is made to capture this information in a lightweight way This works well, although the tooling (IMHO) is poor and hard to work with. Redgate Monitor is going to overlay this and make it easy for DBAs, InfoSec, and auditors to better understand what is happening in a SQL Server Environment.

    There is a new tab in Redgate Monitor Enterprise Permissions page that contains this data. This is listed as “SQL Audit” and you can see this below.

    2026-01_0105

    Each row in here gives the time of the change, as detected by SQL Audit. If I expand the first column, I can see the details. In this case, we have a regular workload running to change these so that the demo site has data, hence you are likely to see the same data every day on monitor.red-gate.com.

    2026-01_0233

    The last column in the right has the command captured, with PII redacted, as you can see here. The reason you may see only the CREATE LOGIN items and not DROP LOGIN is this first slice of work is just getting the additions, so you can catch those hackers trying to add accounts.

    2026-01_0234

    The SQL Audit documentation page explains how this works, and keep checking this as there is a team enhancing these features on a regular basis and adding more events.

    As with most of the pages in Redgate Monitor, you can filter and customize what data is displayed. You can also export your data as an csv file you can give to others. You have the option to get all data or just filtered data.

    2026-01_0235

    Summary

    This post shows how a new preview feature in Redgate Monitor Enterprise uses SQL Audit to gather data on specific actions that are being taken on your SQL Server instances. This is a useful feature many customers have requested and it is being actively enhanced, so feedback is appreciated.

    If you have feedback, please let us know as we value your opinions and comments on how we shape the future of Redgate Monitor.

    Redgate Monitor is a world class monitoring solution for your database estate. Download a trial today and see how it can help you manage your estate more efficiently.