Skip to content

Instantly share code, notes, and snippets.

@nzbart
Last active August 29, 2015 14:13
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 nzbart/8810a4df8f2e4143fd22 to your computer and use it in GitHub Desktop.
Save nzbart/8810a4df8f2e4143fd22 to your computer and use it in GitHub Desktop.
iislog <- read.delim("Filtered.log", header=TRUE, sep=" ")
iislog <- within(v, { localdatetime=as.POSIXct(paste(date, time)) + 13*60*60 })
h <- hist(
iislog$localdatetime,
freq = TRUE,
breaks=24,
xlab = "Time of day",
ylab = "Requests per hour",
axes = F,
main="Distribution of traffic throughout day (requests / hour)"
)
box()
axis.POSIXct(
1,
at = seq(as.POSIXct("2014-12-29 00:00:00"), as.POSIXct("2014-12-29 23:59:59"), by = "1 hour"),
format = "%H")
axis(2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment