// Copyright (C) 2026 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto2";

package perfetto.protos;

// Configuration for the "linux.systemd_journald" data source.
// Next field id: 4
message SystemdJournaldConfig {
  // Minimum syslog priority level to capture (inclusive).
  // 0=EMERG, 1=ALERT, 2=CRIT, 3=ERR, 4=WARNING, 5=NOTICE, 6=INFO, 7=DEBUG.
  // Default (0 / unset): capture all priorities (equivalent to 7).
  optional uint32 min_prio = 1;

  // If non-empty, only capture journal entries whose SYSLOG_IDENTIFIER
  // matches one of these strings.
  repeated string filter_identifiers = 2;

  // If non-empty, only capture journal entries from these systemd unit names.
  repeated string filter_units = 3;
}
