How to drop default label

I use alloy to transfer my iis logs stored on file to loki. when creating labels for records, it automatically adds a label named filename, which I don’t want.

local.file_match "local_iislog_files" {
    path_targets = [{"__path__" = "D:/iis_logs/**/*.log"}]
    sync_period = "5s"
}

loki.source.file "iislog_scrape" {
    targets    = local.file_match.local_iislog_files.targets
    forward_to = [loki.process.process_iislogs.receiver]
}

how can I drop this automatically added label?

See loki.process | Grafana Alloy documentation

It’s my fault I didn’t see it.

	stage.label_drop {
		values = [ "filename" ]
	}

or

loki.relabel "relabel_iislogs" {
  
  forward_to = [loki.write.grafana_loki.receiver]

  rule {
    action = "labeldrop"
    regex  = "filename"
  }
}