/etc/aminer/conf-available/generic/AudispdParsingModel.py is in logdata-anomaly-miner 0.0.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 | from aminer.parsing import AnyByteDataModelElement
from aminer.parsing import DecimalIntegerValueModelElement
from aminer.parsing import DelimitedDataModelElement
from aminer.parsing import ElementValueBranchModelElement
from aminer.parsing import FirstMatchModelElement
from aminer.parsing import FixedDataModelElement
from aminer.parsing import FixedWordlistDataModelElement
from aminer.parsing import HexStringModelElement
from aminer.parsing import IpAddressDataModelElement
from aminer.parsing import MatchElement
from aminer.parsing import OptionalMatchModelElement
from aminer.parsing import RepeatedElementDataModelElement
from aminer.parsing import SequenceModelElement
from aminer.parsing import VariableByteDataModelElement
from aminer.parsing import WhiteSpaceLimitedDataModelElement
def getModel():
"""This function defines how to parse a audispd message logged
via syslog after any standard logging preamble, e.g. from syslog."""
class ExecArgumentDataModelElement:
def __init__(self, id):
self.id=id
def getChildElements(self):
return(None)
def getMatchElement(self, path, matchContext):
"""Find the maximum number of bytes belonging to an exec
argument.
@return a match when at least two bytes were found including
the delimiters."""
data=matchContext.matchData
matchLen=0
matchValue=''
if data[0] == '"':
matchLen=data.find('"', 1)
if matchLen==-1: return(None)
matchValue=data[1:matchLen]
matchLen+=1
elif data.startswith('(null)'):
matchLen=6
matchValue=None
else:
# Must be upper case hex encoded:
nextValue=-1
for dByte in data:
dOrd=ord(dByte)
if (dOrd>=0x30) and (dOrd<=0x39):
dOrd-=0x30
elif (dOrd>=0x41) and (dOrd<=0x46):
dOrd-=0x37
else:
break
if nextValue==-1: nextValue=(dOrd<<4)
else:
matchValue+=chr(nextValue|dOrd)
nextValue=-1
matchLen+=1
if nextValue!=-1: return(None)
matchData=data[:matchLen]
matchContext.update(matchData)
return(MatchElement("%s/%s" % (path, self.id),
matchData, matchValue, None))
pamStatusWordList=FixedWordlistDataModelElement('status', ['failed', 'success'])
typeBranches={}
typeBranches['ADD_USER']=SequenceModelElement('adduser', [
FixedDataModelElement('s0', ' pid='),
DecimalIntegerValueModelElement('pid'),
FixedDataModelElement('s1', ' uid='),
DecimalIntegerValueModelElement('uid'),
FixedDataModelElement('s2', ' auid='),
DecimalIntegerValueModelElement('auid'),
FixedDataModelElement('s3', ' ses='),
DecimalIntegerValueModelElement('ses'),
FixedDataModelElement('s4', ' msg=\'op=adding user id='),
DecimalIntegerValueModelElement('newuserid'),
FixedDataModelElement('s5', ' exe="'),
DelimitedDataModelElement('exec', '"'),
FixedDataModelElement('s6', '" hostname='),
DelimitedDataModelElement('clientname', ' '),
FixedDataModelElement('s7', ' addr='),
DelimitedDataModelElement('clienip', ' '),
FixedDataModelElement('s8', ' terminal='),
WhiteSpaceLimitedDataModelElement('terminal'),
FixedDataModelElement('s9', ' res=success\'')
])
typeBranches['BPRM_FCAPS']=SequenceModelElement('bprmfcaps', [
FixedDataModelElement('s0', ' fver=0 fp='),
HexStringModelElement('fp'),
FixedDataModelElement('s1', ' fi='),
HexStringModelElement('fi'),
FixedDataModelElement('s2', ' fe='),
HexStringModelElement('fe'),
FixedDataModelElement('s3', ' old_pp='),
HexStringModelElement('pp-old'),
FixedDataModelElement('s4', ' old_pi='),
HexStringModelElement('pi-old'),
FixedDataModelElement('s5', ' old_pe='),
HexStringModelElement('pe-old'),
FixedDataModelElement('s6', ' new_pp='),
HexStringModelElement('pp-new'),
FixedDataModelElement('s7', ' new_pi='),
HexStringModelElement('pi-new'),
FixedDataModelElement('s8', ' new_pe='),
HexStringModelElement('pe-new')
])
typeBranches['CONFIG_CHANGE']=SequenceModelElement('conf-change', [
FixedDataModelElement('s0', ' auid='),
DecimalIntegerValueModelElement('auid'),
FixedDataModelElement('s1', ' ses='),
DecimalIntegerValueModelElement('ses'),
FixedDataModelElement('s2', ' op="add rule" key=(null) list='),
DecimalIntegerValueModelElement('list'),
FixedDataModelElement('s3', ' res='),
DecimalIntegerValueModelElement('result')
])
typeBranches['CRED_ACQ']=SequenceModelElement('credacq', [
FixedDataModelElement('s0', ' pid='),
DecimalIntegerValueModelElement('pid'),
FixedDataModelElement('s1', ' uid='),
DecimalIntegerValueModelElement('uid'),
FixedDataModelElement('s2', ' auid='),
DecimalIntegerValueModelElement('auid'),
FixedDataModelElement('s3', ' ses='),
DecimalIntegerValueModelElement('ses'),
FixedDataModelElement('s4', ' msg=\'op=PAM:setcred acct="'),
DelimitedDataModelElement('username', '"'),
FixedDataModelElement('s5', '" exe="'),
DelimitedDataModelElement('exec', '"'),
FixedDataModelElement('s6', '" hostname='),
DelimitedDataModelElement('clientname', ' '),
FixedDataModelElement('s7', ' addr='),
DelimitedDataModelElement('clienip', ' '),
FixedDataModelElement('s8', ' terminal='),
WhiteSpaceLimitedDataModelElement('terminal'),
FixedDataModelElement('s9', ' res=success\'')
])
typeBranches['CRED_DISP']=SequenceModelElement('creddisp', [
FixedDataModelElement('s0', ' pid='),
DecimalIntegerValueModelElement('pid'),
FixedDataModelElement('s1', ' uid='),
DecimalIntegerValueModelElement('uid'),
FixedDataModelElement('s2', ' auid='),
DecimalIntegerValueModelElement('auid'),
FixedDataModelElement('s3', ' ses='),
DecimalIntegerValueModelElement('ses'),
FixedDataModelElement('s4', ' msg=\'op=PAM:setcred acct="'),
DelimitedDataModelElement('username', '"'),
FixedDataModelElement('s5', '" exe="'),
DelimitedDataModelElement('exec', '"'),
FixedDataModelElement('s6', '" hostname='),
DelimitedDataModelElement('clientname', ' '),
FixedDataModelElement('s7', ' addr='),
DelimitedDataModelElement('clienip', ' '),
FixedDataModelElement('s8', ' terminal='),
WhiteSpaceLimitedDataModelElement('terminal'),
FixedDataModelElement('s9', ' res=success\'')
])
typeBranches['CRED_REFR']=SequenceModelElement('creddisp', [
FixedDataModelElement('s0', ' pid='),
DecimalIntegerValueModelElement('pid'),
FixedDataModelElement('s1', ' uid='),
DecimalIntegerValueModelElement('uid'),
FixedDataModelElement('s2', ' auid='),
DecimalIntegerValueModelElement('auid'),
FixedDataModelElement('s3', ' ses='),
DecimalIntegerValueModelElement('ses'),
FixedDataModelElement('s4', ' msg=\'op=PAM:setcred acct="root" exe="/usr/sbin/sshd" hostname='),
IpAddressDataModelElement('clientname'),
FixedDataModelElement('s5', ' addr='),
IpAddressDataModelElement('clientip'),
FixedDataModelElement('s6', ' terminal=ssh res=success\'')])
typeBranches['CWD']=SequenceModelElement('cwd', [
FixedDataModelElement('s0', ' cwd='),
ExecArgumentDataModelElement('cwd')])
typeBranches['EOE']=SequenceModelElement('eoe', [])
execArgModel=SequenceModelElement('execarg', [
FixedDataModelElement('s0', ' a'),
DecimalIntegerValueModelElement('argn'),
FixedDataModelElement('s1', '='),
ExecArgumentDataModelElement('argval')])
typeBranches['EXECVE']=SequenceModelElement('execve', [
FixedDataModelElement('s0', ' argc='),
DecimalIntegerValueModelElement('argc'),
RepeatedElementDataModelElement('arg', execArgModel)])
# This message differs on Ubuntu 32/64 bit variants.
typeBranches['LOGIN']=SequenceModelElement('login', [
FixedDataModelElement('s0', ' pid='),
DecimalIntegerValueModelElement('pid'),
FixedDataModelElement('s1', ' uid='),
DecimalIntegerValueModelElement('uid'),
FixedWordlistDataModelElement('s2', [' old auid=', ' old-auid=']),
DecimalIntegerValueModelElement('auid-old'),
FixedWordlistDataModelElement('s3', [' new auid=', ' auid=']),
DecimalIntegerValueModelElement('auid-new'),
FixedWordlistDataModelElement('s4', [' old ses=', ' old-ses=']),
DecimalIntegerValueModelElement('ses-old'),
FixedWordlistDataModelElement('s5', [' new ses=', ' ses=']),
DecimalIntegerValueModelElement('ses-new'),
FixedDataModelElement('s6', ' res='),
DecimalIntegerValueModelElement('result')])
inodeInfoModelElement=SequenceModelElement('inodeinfo', [
FixedDataModelElement('s0', ' inode='),
DecimalIntegerValueModelElement('inode'),
FixedDataModelElement('s1', ' dev='),
# FIXME: dev element
VariableByteDataModelElement('dev', '0123456789abcdef:'),
FixedDataModelElement('s2', ' mode='),
# FIXME: is octal
DecimalIntegerValueModelElement('mode'),
FixedDataModelElement('s3', ' ouid='),
DecimalIntegerValueModelElement('ouid'),
FixedDataModelElement('s4', ' ogid='),
DecimalIntegerValueModelElement('ogid'),
FixedDataModelElement('s5', ' rdev='),
# FIXME: dev element
VariableByteDataModelElement('rdev', '0123456789abcdef:'),
FixedDataModelElement('s6', ' nametype=')])
typeBranches['NETFILTER_CFG']=SequenceModelElement('conf-change', [
FixedDataModelElement('s0', ' table='),
FixedWordlistDataModelElement('table', ['filter', 'mangle', 'nat']),
FixedDataModelElement('s1', ' family='),
DecimalIntegerValueModelElement('family'),
FixedDataModelElement('s2', ' entries='),
DecimalIntegerValueModelElement('entries')
])
typeBranches['PATH']=SequenceModelElement('path', [
FixedDataModelElement('s0', ' item='),
DecimalIntegerValueModelElement('item'),
FixedDataModelElement('s1', ' name='),
ExecArgumentDataModelElement('name'),
FirstMatchModelElement('fsinfo', [
inodeInfoModelElement,
FixedDataModelElement('noinfo', ' nametype=')]),
FixedWordlistDataModelElement('nametype', ['CREATE', 'DELETE', 'NORMAL', 'PARENT', 'UNKNOWN']),
])
typeBranches['PROCTITLE']=SequenceModelElement('proctitle', [
FixedDataModelElement('s1', ' proctitle='),
ExecArgumentDataModelElement('proctitle')])
typeBranches['SERVICE_START']=SequenceModelElement('service', [
FixedDataModelElement('s0', ' pid='),
DecimalIntegerValueModelElement('pid'),
FixedDataModelElement('s1', ' uid='),
DecimalIntegerValueModelElement('uid'),
FixedDataModelElement('s2', ' auid='),
DecimalIntegerValueModelElement('auid'),
FixedDataModelElement('s3', ' ses='),
DecimalIntegerValueModelElement('ses'),
FixedDataModelElement('s4', ' msg=\'unit='),
DelimitedDataModelElement('unit', ' '),
FixedDataModelElement('s5', ' comm="systemd" exe="'),
DelimitedDataModelElement('exec', '"'),
FixedDataModelElement('s6', '" hostname='),
DelimitedDataModelElement('clientname', ' '),
FixedDataModelElement('s7', ' addr='),
DelimitedDataModelElement('clienip', ' '),
FixedDataModelElement('s8', ' terminal='),
WhiteSpaceLimitedDataModelElement('terminal'),
FixedDataModelElement('s9', ' res='),
pamStatusWordList,
FixedDataModelElement('s10', '\'')
])
typeBranches['SERVICE_STOP']=typeBranches['SERVICE_START']
typeBranches['SOCKADDR']=SequenceModelElement('sockaddr', [
FixedDataModelElement('s0', ' saddr='),
HexStringModelElement('sockaddr'),
])
typeBranches['SYSCALL']=SequenceModelElement('syscall', [
FixedDataModelElement('s0', ' arch='),
HexStringModelElement('arch'),
FixedDataModelElement('s1', ' syscall='),
DecimalIntegerValueModelElement('syscall'),
OptionalMatchModelElement('personality', SequenceModelElement('pseq', [
FixedDataModelElement('s0', ' per='),
DecimalIntegerValueModelElement('personality'),
])),
FixedDataModelElement('s2', ' success='),
FixedWordlistDataModelElement('succes', ['no', 'yes']),
FixedDataModelElement('s3', ' exit='),
DecimalIntegerValueModelElement('exit', valueSignType=DecimalIntegerValueModelElement.SIGN_TYPE_OPTIONAL),
FixedDataModelElement('s4', ' a0='),
HexStringModelElement('arg0'),
FixedDataModelElement('s5', ' a1='),
HexStringModelElement('arg1'),
FixedDataModelElement('s6', ' a2='),
HexStringModelElement('arg2'),
FixedDataModelElement('s7', ' a3='),
HexStringModelElement('arg3'),
FixedDataModelElement('s8', ' items='),
DecimalIntegerValueModelElement('items'),
FixedDataModelElement('s9', ' ppid='),
DecimalIntegerValueModelElement('ppid'),
FixedDataModelElement('s10', ' pid='),
DecimalIntegerValueModelElement('pid'),
FixedDataModelElement('s11', ' auid='),
DecimalIntegerValueModelElement('auid'),
FixedDataModelElement('s12', ' uid='),
DecimalIntegerValueModelElement('uid'),
FixedDataModelElement('s13', ' gid='),
DecimalIntegerValueModelElement('gid'),
FixedDataModelElement('s14', ' euid='),
DecimalIntegerValueModelElement('euid'),
FixedDataModelElement('s15', ' suid='),
DecimalIntegerValueModelElement('suid'),
FixedDataModelElement('s16', ' fsuid='),
DecimalIntegerValueModelElement('fsuid'),
FixedDataModelElement('s17', ' egid='),
DecimalIntegerValueModelElement('egid'),
FixedDataModelElement('s18', ' sgid='),
DecimalIntegerValueModelElement('sgid'),
FixedDataModelElement('s19', ' fsgid='),
DecimalIntegerValueModelElement('fsgid'),
FixedDataModelElement('s20', ' tty='),
DelimitedDataModelElement('tty', ' '),
FixedDataModelElement('s21', ' ses='),
DecimalIntegerValueModelElement('sesid'),
FixedDataModelElement('s22', ' comm='),
ExecArgumentDataModelElement('command'),
FixedDataModelElement('s23', ' exe="'),
DelimitedDataModelElement('executable', '"'),
FixedDataModelElement('s24', '" key='),
AnyByteDataModelElement('key')
])
# The UNKNOWN type is used then audispd does not know the type
# of the event, usually because the kernel is more recent than
# audispd, thus emiting yet unknown event types.
# * type=1327: procitle: see https://www.redhat.com/archives/linux-audit/2014-February/msg00047.html
typeBranches['UNKNOWN[1327]']=SequenceModelElement('unknown-proctitle', [
FixedDataModelElement('s0', ' proctitle='),
ExecArgumentDataModelElement('proctitle')
])
typeBranches['USER_ACCT']=SequenceModelElement('useracct', [
FixedDataModelElement('s0', ' pid='),
DecimalIntegerValueModelElement('pid'),
FixedDataModelElement('s1', ' uid='),
DecimalIntegerValueModelElement('uid'),
FixedDataModelElement('s2', ' auid='),
DecimalIntegerValueModelElement('auid'),
FixedDataModelElement('s3', ' ses='),
DecimalIntegerValueModelElement('ses'),
FixedDataModelElement('s4', ' msg=\'op=PAM:accounting acct="'),
DelimitedDataModelElement('username', '"'),
FixedDataModelElement('s5', '" exe="'),
DelimitedDataModelElement('exec', '"'),
FixedDataModelElement('s6', '" hostname='),
DelimitedDataModelElement('clientname', ' '),
FixedDataModelElement('s7', ' addr='),
DelimitedDataModelElement('clienip', ' '),
FixedDataModelElement('s8', ' terminal='),
WhiteSpaceLimitedDataModelElement('terminal'),
FixedDataModelElement('s9', ' res=success\'')
])
typeBranches['USER_AUTH']=SequenceModelElement('userauth', [
FixedDataModelElement('s0', ' pid='),
DecimalIntegerValueModelElement('pid'),
FixedDataModelElement('s1', ' uid='),
DecimalIntegerValueModelElement('uid'),
FixedDataModelElement('s2', ' auid='),
DecimalIntegerValueModelElement('auid'),
FixedDataModelElement('s3', ' ses='),
DecimalIntegerValueModelElement('ses'),
FixedDataModelElement('s4', ' msg=\'op=PAM:authentication acct="'),
DelimitedDataModelElement('username', '"'),
FixedDataModelElement('s5', '" exe="'),
DelimitedDataModelElement('exec', '"'),
FixedDataModelElement('s6', '" hostname='),
DelimitedDataModelElement('clientname', ' '),
FixedDataModelElement('s7', ' addr='),
DelimitedDataModelElement('clienip', ' '),
FixedDataModelElement('s8', ' terminal='),
WhiteSpaceLimitedDataModelElement('terminal'),
FixedDataModelElement('s9', ' res=success\'')
])
typeBranches['USER_START']=SequenceModelElement('userstart', [
FixedDataModelElement('s0', ' pid='),
DecimalIntegerValueModelElement('pid'),
FixedDataModelElement('s1', ' uid='),
DecimalIntegerValueModelElement('uid'),
FixedDataModelElement('s2', ' auid='),
DecimalIntegerValueModelElement('auid'),
FixedDataModelElement('s3', ' ses='),
DecimalIntegerValueModelElement('ses'),
FixedDataModelElement('s4', ' msg=\'op=PAM:session_open acct="'),
DelimitedDataModelElement('username', '"'),
FixedDataModelElement('s5', '" exe="'),
DelimitedDataModelElement('exec', '"'),
FixedDataModelElement('s6', '" hostname='),
DelimitedDataModelElement('clientname', ' '),
FixedDataModelElement('s7', ' addr='),
DelimitedDataModelElement('clienip', ' '),
FixedDataModelElement('s8', ' terminal='),
WhiteSpaceLimitedDataModelElement('terminal'),
FixedDataModelElement('s9', ' res=success\'')
])
typeBranches['USER_END']=SequenceModelElement('userend', [
FixedDataModelElement('s0', ' pid='),
DecimalIntegerValueModelElement('pid'),
FixedDataModelElement('s1', ' uid='),
DecimalIntegerValueModelElement('uid'),
FixedDataModelElement('s2', ' auid='),
DecimalIntegerValueModelElement('auid'),
FixedDataModelElement('s3', ' ses='),
DecimalIntegerValueModelElement('ses'),
FixedDataModelElement('s4', ' msg=\'op=PAM:session_close acct="'),
DelimitedDataModelElement('username', '"'),
FixedDataModelElement('s5', '" exe="'),
DelimitedDataModelElement('exec', '"'),
FixedDataModelElement('s6', '" hostname='),
DelimitedDataModelElement('clientname', ' '),
FixedDataModelElement('s7', ' addr='),
DelimitedDataModelElement('clienip', ' '),
FixedDataModelElement('s8', ' terminal='),
WhiteSpaceLimitedDataModelElement('terminal'),
FixedDataModelElement('s9', ' res=success\'')
])
typeBranches['USER_ERR']=SequenceModelElement('usererr', [
FixedDataModelElement('s0', ' pid='),
DecimalIntegerValueModelElement('pid'),
FixedDataModelElement('s1', ' uid='),
DecimalIntegerValueModelElement('uid'),
FixedDataModelElement('s2', ' auid='),
DecimalIntegerValueModelElement('auid'),
FixedDataModelElement('s3', ' ses='),
DecimalIntegerValueModelElement('ses'),
FixedDataModelElement('s4', ' msg=\'op=PAM:bad_ident acct="?" exe="'),
DelimitedDataModelElement('exec', '"'),
FixedDataModelElement('s5', '" hostname='),
DelimitedDataModelElement('clientname', ' '),
FixedDataModelElement('s6', ' addr='),
DelimitedDataModelElement('clienip', ' '),
FixedDataModelElement('s7', ' terminal='),
WhiteSpaceLimitedDataModelElement('terminal'),
FixedDataModelElement('s8', ' res=failed\'')
])
typeBranches['USER_LOGIN']=SequenceModelElement('userlogin', [
FixedDataModelElement('s0', ' pid='),
DecimalIntegerValueModelElement('pid'),
FixedDataModelElement('s1', ' uid='),
DecimalIntegerValueModelElement('uid'),
FixedDataModelElement('s2', ' auid='),
DecimalIntegerValueModelElement('auid'),
FixedDataModelElement('s3', ' ses='),
DecimalIntegerValueModelElement('ses'),
FixedDataModelElement('s4', ' msg=\'op=login '),
FirstMatchModelElement('msgtype', [
FixedDataModelElement('loginok', 'id=0'),
SequenceModelElement('loginfail', [
FixedDataModelElement('s0', 'acct='),
ExecArgumentDataModelElement('account')
])]),
FixedDataModelElement('s5', ' exe="'),
DelimitedDataModelElement('exec', '"'),
FixedDataModelElement('s6', '" hostname='),
DelimitedDataModelElement('clientname', ' '),
FixedDataModelElement('s7', ' addr='),
DelimitedDataModelElement('clienip', ' '),
FixedDataModelElement('s8', ' terminal='),
WhiteSpaceLimitedDataModelElement('terminal'),
FixedDataModelElement('s9', ' res='),
pamStatusWordList,
FixedDataModelElement('s10', '\'')
])
model=SequenceModelElement('audispd', [
FixedDataModelElement('sname', 'audispd: '),
FirstMatchModelElement('msg', [
ElementValueBranchModelElement('record',
SequenceModelElement('preamble', [
FixedDataModelElement('s0', 'type='),
WhiteSpaceLimitedDataModelElement('type'),
FixedDataModelElement('s1', ' msg=audit('),
DecimalIntegerValueModelElement('time'),
FixedDataModelElement('s0', '.'),
DecimalIntegerValueModelElement('ms'),
FixedDataModelElement('s1', ':'),
DecimalIntegerValueModelElement('seq'),
FixedDataModelElement('s2', '):')
]),
'type', typeBranches, defaultBranch=None),
FixedDataModelElement('queue-full', 'queue is full - dropping event')
])
])
return(model)
|