Skip to content

Instantly share code, notes, and snippets.

@ehynds
Created January 23, 2018 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehynds/0b5952673818754a509da0134dc774b0 to your computer and use it in GitHub Desktop.
Save ehynds/0b5952673818754a509da0134dc774b0 to your computer and use it in GitHub Desktop.
sumologic.json
{
"api.version": "v1",
"sources": [{
"sourceType" : "LocalFile",
"name": "web",
"category": "map-public",
"pathExpression": "/var/log/web/*.log",
"timeZone": "America/New_York",
"filters": [{
"name": "mask_email",
"filterType": "Mask",
"regexp": "email=(.+?)(?=[&\"\s])",
"mask": "EMAIL_REDACTED"
}, {
"name": "mask_ip",
"filterType": "Mask",
"regexp": "((?:[0-9]{1,3}\\.){3}[0-9]{1,3})",
"mask": "IP_REDACTED"
}]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment