Two of these proved to be broken reeds. Russian troops were almost as prompt in invading East Prussia as German troops in crossing the frontiers of France and Belgium, and by the end of the first week in August a flight to Berlin had begun. The shortest way from the Russian frontier to Berlin was by Posen, and it lay through a country peopled with Poles who were bitterly hostile to their German masters. But it was impossible to exploit these advantages at the expense of deepening the Polish salient with its already too narrow base, and the flanks in East Prussia and Galicia had first to be cleared. Under the supreme command of the Grand Duke Nicholas, who in spite of his rank was a competent professional soldier, and the more immediate direction of Rennenkampf, one of the few Russian officers to emerge with enchanced reputation from the Japanese War, the Russians proceed to concentrate on East Prussia (see Map). On the east Gumbinnen was captured after a battle on the 20th, and the important junction of Insterburg occupied by Rennenkampf, while on the south Samsonov on the 21st turned the German right, threatened Allenstein and drove the fugitives, as Rennenkampf had done, into the lines of Königsberg. East Prussia lay at Russia's feet, and something like a panic alarmed Berlin. The Teutonic cause was faring even worse in Galicia and Poland. Austria had a million troops in Galicia, but her offensive under Dankl towards Lublin only produced a strategic Russia retirement, while Ruszky and Brussilov overran the eastern borders and menaced Lemberg.
Fortunately for the Germans their own right hand proved a stronger defence. The incompetent General von François, who had been driven into Königsberg, was superseded by Hindenburg, a retired veteran of nearly seventy, whose military career had made so slight an impression on the German mind that his name was not even included in the German "Who's Who." Nevertheless he had commanded corps on the Prussian frontier, and even after his retirement made the study of its defence his hobby. He knew every yard of the intricate mixture of land and water which made up the district of the Masurian Lakes, and had, unfortunately for Russia, defeated a German financial scheme for draining the country and turning it into land over which an invader could safely march. Within five days of Samsonov's victory, Hindenburg, taking advantage of the magnificent system of German strategic railways, had collected some 150,000 men from the fortresses on the Vistula and concentrated them on a strong position stretching from near Allenstein south-west towards Soldau, his left resting on the railway from Eylau to Insterburg and his right on that from Eylau to Warsaw. In front of him were marshes with the ways through which he was, but Samsonov was not, familiar; and the railways enabled him to threaten either of the enemy's flanks.