7 logfile <- file("data/photos.vanrenterghem.biz.access.kvp.log.1")
9 apachelog <- stream_in(logfile)
11 #apachelog$time <- gsub("\\[|\\]", "", apachelog$time)
13 mutate(time = gsub("\\[|\\]", "", time),
15 datehour = floor_date(time, unit = "hour")
17 filter(time > ymd_h("2018-08-22 12")) %>%
18 group_by(datehour) %>%
19 summarise(hits = n()) ->
22 apachelog_tsbl <- as.tsibble(apachelog_tidy, index = datehour)
27 ggtitle("Forecasting website hits using apache log only") +