Meaningless violence is too easy, so is ham fisted moralizing. True classics find some kind of meaning, even in the meaninless tragedy of life, like the Iliad.
I doubt Tolstoy wrote his stories without some kind of purpose, but I agree it would be a mistake to try too hard looking for meaning in case he just felt like writing up some sad shit.