Você pode fazer isso da seguinte maneira:
# store the 3 lines to match in shell variables
line_1="log4j.appender.DRFA=org.apache.log4j.RollingFileAppender"
line_2="log4j.appender.DRFA.MaxBackupIndex=100"
line_3="log4j.appender.DRFA.MaxFileSize=10MB"
# function that escapes it's first argument to make it palatable
# for use in 'sed' editor's 's///' command's left-hand side argument
esc() {
printf '%s\n' "$1" | sed -e 's:[][\/.^$*]:\&:g'
}
# escape the lines
line_1_esc=$(esc "$line_1")
line_2_esc=$(esc "$line_2")
line_3_esc=$(esc "$line_3")
# invoke 'sed' and fill up the pattern space with 4 lines (rather than the default 1)
# then apply the regex to detect the presence of the lines 1/2/3.
sed -e '
1N;2N;$!N
'"/^$line_1_esc\n$line_2_esc\n$line_3_esc\n.*DatePattern/"'!D
:a;n;$!ba
' input.file