file separated into paragraphs or pages

hi,

i have file,

file is separated into parahgraphs by these line(----------).
i want to find out logId = string : "AIALARM", in each parahgraph or page
if found then i want to cut next five lines....

--------------------------------------------------------------------------------------------------------------------------

 M-GET CONFIRMATION (
     INVOKE IDENTIFIER       173965,
     LINKED IDENTIFIER       18351,
     MANAGED OBJECT CLASS    stateChangeRecord,
     MANAGED OBJECT INSTANCE {
                                 logId = string : "AIALARM",
                                 logRecordId = number : 62237
                             },
     CURRENT TIME            "20111121000332",
     ATTRIBUTE LIST          {
                                 objectClass stateChangeRecord,
                                 nameBinding logRecord-log,
                                 managedObjectClass signRouteSetNePart,
                                 managedObjectInstance {
                                     mtpSignPointId = numericName : 4,
                                     signRouteSetNePartId = bit14 : 5239
                                 },
                                 eventType stateChange,
                                 eventTime "20111103084546",
                                 logRecordId number : 62237,
                                 loggingTime "20111103084546",
                                 packages {
                                     attributeIdentifierListPackage, sourceIndicatorPackage,
                                     eventTimePackage
                                 },
                                 attributeIdentifierList { GAAGDA1C.administrativeState },
                                 sourceIndicator managementOperation,
                                 stateChangeDefinition {
                                     {
                                         attributeID       GAAGDA1C.administrativeState,
                                         oldAttributeValue GAAASA1C.AdministrativeState : unlocked,
                                         newAttributeValue GAAASA1C.AdministrativeState : locked
                                     }
                                 }
                             }
 )

--------------------------------------------------------------------------------------------------------------------------

please suggest.
thanks

Are you looking for this ?

$ nawk 'c-->0;/logId = string : "AIALARM"/{print;c=5}' infile

thanlks frnds
its working ...
1 thing more
1 want to cut jst 1st and last filed from a file ...i dont knw how many filrs are there ?how it is possble?