Skip to content

Parsing IIS logs (W3C log file format) #16581

Answered by jszwedko
yavulan asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @yavulan ,

It won't be straight-forward, but it seems like this should be possible through configuration of the multiline options on the file source to group each entry together and then parsing it. It seems like:

#Software: Microsoft Internet Information Services
#Version: 1.0
#Date: 2023-02-23 00:00:01
#Fields: date time
2023-02-23 00:00:02
2023-02-23 00:00:03

Would be one entry. You could then parse that that emit multiple events from a remap program following https://vector.dev/highlights/2021-07-16-remap-multiple/. If VRL proves insufficient for parsing, you could also use a lua transform.

If it is possible to change the output format to something more structured, though, I'd rec…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yavulan
Comment options

Answer selected by yavulan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants