I'm using free edition of splunk server, the problem is that every time I start the splunk server, the data is deleted, I also see it being deleted in the var/lib/splunk folder.
more info: I did not breach the 500 MB limit, indexes.conf is at the default state,
same search query is being executed before restart and after restart with different results (before - finds result, after - doesn't), latest splunk 5.0.1 is used.
I don't know what you're doing. Splunk doesn't delete files on restart, and there's no function that does that other than an explicit clean of the indexes. On the other hand, if the files aren't actually being deleted, perhaps it is simply that your query is time-range specific and you're not getting results shortly after a restart because of that.