Advertisement
Guest User

check that doesn't seem to work

a guest
Dec 18th, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #check to see if the 2 username fields are the same, if they are merge them and remove old fields, if they are not alert
  2. if [user_session] and [user_service] and [user_session] != [user_service] {
  3. mutate {
  4. add_tag => [ "alert" ]
  5. }
  6. }
  7. else {
  8. mutate {
  9. add_field => { "samba_user" => "%{user_session}" }
  10. remove_field => [ "user_session", "user_service" ]
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement