general question here as I'm not sure I understand the multiline filter quite yet. sorry if this has been answered many times before. I tried searching a bit but didn't find a clear example. what I'm looking to do is combine 4 line entries into what will look like one line so I can grok "message" appropriately... it's from a Cisco ACS server and what it looks like is happening is when it generates a log it really generates 5 lines for every log as follows:
Feb 11 18:02:46 xxxxx CSCOacs_Passed_Authentications 0027684799 5 0 2016-02-11 18:02:46.659 +00:00 0152726068 5201 NOTICE Passed-Authentication: Authentication succeeded, ACSVersion=acs-5.4.0.46(unresolved)-B.221, ConfigVersionId=172, Device IP Address=x.x.x.x.(xxx-xxxxx), DestinationIPAddress=x.x.x.x(xxxxxx), DestinationPort=49, UserName=xxx, Protocol=Tacacs, RequestLatency=34, Type=Authentication, Action=Login, Privilege-Level=1, Authen-Type=ASCII, Service=Login, User=xxxx, Port=64941, Remote-Address=x.x.x.x(xxxx),
Feb 11 18:02:46 lxacs1 CSCOacs_Passed_Authentications 0027684799 5 1 UserName=xxxx, AcsSessionID=xxxxx/228692893/8870500, AuthenticationIdentityStore=AD1, AuthenticationMethod=PAP_ASCII, SelectedAccessService=Default Device Admin, SelectedShellProfile=PermitEnable, IdentityGroup=IdentityGroup:All Groups:ACSViewOnly, Step=13013 , Step=15008 , Step=15004 , Step=15012 , Step=15041 , Step=15004 , Step=15013 , Step=13045 , Step=13015 , Step=13014 , Step=15037 , Step=15041 , Step=15004 , Step=15013 ,
Feb 11 18:02:46 xxxxx CSCOacs_Passed_Authentications 0027684799 5 2 Step=24430 , Step=24416 , Step=24420 , Step=24402 , Step=22037 , Step=15044 , Step=15004 , Step=15035 , Step=15042 , Step=15036 , Step=15004 , Step=13015 , SelectedAuthenticationIdentityStores=AD1, SelectedAuthenticationIdentityStores=AD1, NetworkDeviceName=xxx-xxxxx, NetworkDeviceGroups=Location:All Locations:xxxxxx, NetworkDeviceGroups=Device Type:All Device Types:Cisco:Cisco ASAs, ServiceSelectionMatchedRule=Rule-2,
Feb 11 18:02:46 xxxx CSCOacs_Passed_Authentications 0027684799 5 3 IdentityPolicyMatchedRule=ActiveDirectory, ADDomain=xxxxx.xxx, GroupMappingPolicyMatchedRule=ViewOnly, AuthorizationPolicyMatchedRule=ViewOnly, Action=Login, Privilege-Level=1, Authen-Type=ASCII, Service=Login, Port=64941, Remote-Address=x.x.x.x(xxxx), ExternalGroups=xxx.xxx/Groups/Security Groups/ISX Viewers, ExternalGroups=xxxx.xxxx/Groups/Security Groups/xxxxxxxx, ExternalGroups=xxx.xxx/Users/xxxxxxxxx,
Feb 11 18:02:46 xxxx CSCOacs_Passed_Authentications 0027684799 5 4 ExternalGroups=xxxxx.xxxx/Users/Domain Users, ExternalGroups=xxxx.xxxx/Builtin/Users, ExternalGroups=xxxx.xxxx/Builtin/Event Log Readers, IdentityAccessRestricted=false, displayName=xxxxx, sAMAccountName=xxxxxx, Response={Type=Authentication; Authen-Reply-Status=Pass; }
sorry I know it's a mess... but here's what I was going to key on:
CSCOacs_Passed_Authentications 0027684799 5 0
CSCOacs_Passed_Authentications 0027684799 5 1
CSCOacs_Passed_Authentications 0027684799 5 2
CSCOacs_Passed_Authentications 0027684799 5 3
CSCOacs_Passed_Authentications 0027684799 5 4
in this the number 0027684799 will increment by 1 for each new log entry and if we reboot the box it will start back over at 0000000001... when it hits all 9999.. it rolls over too.
in the first line there's an additional line:
CSCOacs_Passed_Authentications 0027684799 5 0 2016-02-11 18:02:46.659 +00:00 0152726068 5201
5201 is the actual "log" type that I would key off of for grok parsing. as that number is unique and will tell me what type of log it really is..
my hope is that with the "multiline" filter I can basically add the 5 lines together and make "message" look like one huge single line entry. I can then parse Message based on the unique ID "5201" in this case the way I need to.
any suggestions would be greatly appreciated.
thanks,
Lee