Problem with wildcards in config.alloy file_match path targets

I am setting up a file match for a group of log files that follow a naming pattern like DA$SOMENAME250318.log. I am attempting to use wildcards for the $ and Date. As is, I get no error, but I also get no logs sent to Loki. I set up a Loki.source.file component and explicitly listed the entire file name without wild cards to forward to an echo component for debugging and that produced logs.

Here is the current config section:

local.file_match "service_logs" {
    path_targets = [{"__path__" = "D:/SomeProject/SomeService/Bin/Log/DA$SOMENAME*.log"}]
    sync_period  = "5s"
}
loki.source.file "service_scrape" {
    targets       = local.file_match.service_logs.targets
    forward_to    = [loki.process.service_labels.receiver]
    tail_from_end = true
}

I also tried

local.file_match "service_logs" {
    path_targets = [{"__path__" = "D:/SomeProject/SomeService/Bin/Log/DA?SOMENAME*.log"}]
    sync_period  = "5s"
}

I receive the following log in EventViewer:
“msg=“no files targets were passed, nothing will be tailed” component_path=/ component_id=loki.source.file.service_scrape”.

Have you tried just "D:/SomeProject/SomeService/Bin/Log/DA*.log"?

I have not. My example path was poorly written. It is really more like “D:/SomeProject/Server/Bin/Log/DASOMENAME.log”. In the Log folder there are many log files for many different services. This was my attempt at just trying to get one of them to output to Loki before I attempted all of them. I did not want to use DA*.log because I did not want all of the services’ logs to be in one stream in Loki.

Still don’t quite understand. If you just want one service, assuming service name being APP123, then shouldn’t it just be DAAPP123*.log?

Embarrassingly simple solution. The problem ended up being that the log files were .LOG instead of .log.