Skip to content

Instantly share code, notes, and snippets.

@Grummle
Created July 30, 2012 19:24
Show Gist options
  • Save Grummle/3209354 to your computer and use it in GitHub Desktop.
Save Grummle/3209354 to your computer and use it in GitHub Desktop.
{
"logPath": "C:\\iislogreader.log",
"sources": [
{
"id":"go.site.net",
"templates":["c:\\iisExtendedTemplate.json","c:\\iisAdvancedLogginTemplate.json"],
"logDirectory": "D:\\IIS\\Logs\\W3SVC2\\",
"staticElements": [
{
"elementName":"logSourceId",
"elementValue":"go.site.net"
}
]
},
{
"id":"services.site.net",
"templates":["c:\\iisExtendedTemplate.json"],
"logDirectory": "D:\\IIS\\Logs\\W3SVC4\\",
"staticElements": [
{
"elementName":"logSourceId",
"elementValue":"services.site.net"
}
]
},
{
"id":"admin.site.net",
"templates":["c:\\iisExtendedTemplate.json"],
"logDirectory": "D:\\IIS\\Logs\\W3SVC3\\",
"staticElements": [
{
"elementName":"logSourceId",
"elementValue":"admin.site.net"
}
]
},
{
"id":"apps.site.net",
"templates":["c:\\iisExtendedTemplate.json"],
"logDirectory": "D:\\IIS\\Logs\\W3SVC5\\",
"staticElements": [
{
"elementName":"logSourceId",
"elementValue":"apps.site.net"
}
]
},
{
"id":"info.site.net",
"templates":["c:\\iisExtendedTemplate.json"],
"logDirectory": "D:\\IIS\\Logs\\W3SVC6\\",
"staticElements": [
{
"elementName":"logSourceId",
"elementValue":"info.site.net"
}
]
}
]
}
{
"multiColumnElements":[
{
"elementName":"EndRequest-UTC",
"colSpan":"2"
},
{
"elementName":"BeginRequest-UTC",
"colSpan":"2"
}
]
}
{
"enabled":true,
"logAll":true,
"batchSize":50000,
"conversions": [
{"elementName": "datetime","type": "DateTime"},
{"elementName": "s-port","type": "int"},
{"elementName": "sc-status","type": "int"},
{"elementName": "sc-substatus","type": "int"},
{"elementName": "sc-win32-status","type": "int"},
{"elementName": "sc-bytes","type": "int"},
{"elementName": "cs-bytes","type": "int"},
{"elementName": "time-taken","type": "int"}
],
"destination":
{
"mongoConnectionString":"mongodb://127.0.0.1/?safe=true",
"mongoDatabase":"logs",
"mongoCollection":"iis"
},
"composites": [
{
"elementName": "datetime",
"elements": [
"date",
"time"
]
}
],
"drop": [
"date",
"time",
"s-sitename"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment