Help on pastash conf file

32 views
Skip to first unread message

Agiftel Collaboration

unread,
Jul 30, 2024, 10:50:28 AM7/30/24
to Homer Capture Server. sipcapture.org
Hi,

I am trying to make working this configuration, but seams something is wrong.
Only "tags" CDR apply. Not AC_SYSLOG and also output not working based on IF statement.
Can you point me in the right direction?

input {
  udp {
    host => 0.0.0.0
    port => 9999
    tags => 'AC_SYSLOG'
type => 'sbc_logs'
  }
  udp {
    host => 0.0.0.0
    port => 514
    tags => 'CDR'
type => 'cdr'
  }
}

filter {
  if [type] == "sbc_logs"{
  app_audiocodes{
debug => true
}
  }
 
 
  if [type] == "cdr" {
  compute_field {
    field => origin
    value => "AUDIOCODES"
}
  json_fields {}
}
}

output {
 if [type] == "sbc_logs" {
    stdout {}
      hep {
        host => "heplify-server"
        port => 9060
        hep_id => 100
      }
   
  }
  else if [type] == "cdr" {
    stdout {}
    loki {
      host => "qryn"
      port => 3100
      path => "/loki/api/v1/push"
    }
  }
}

Reply all
Reply to author
Forward
0 new messages