Let S be a germ of a holomorphic curve at (C 2 , 0) with finitely many branches S 1 , . . . , S r and let I = (I 1 , . . . , I r ) ∈ C r . We show that there exists a nondicritical holomorphic foliation of logarithmic type at 0 ∈ C 2 whose set of separatrices is S and having index I i along S i in the sense of Lins Neto (Lecture Notes in Math. 1345Math. , 192-232, 1988 if the following (necessary) condition holds: after a reduction of singularities π : M → (C 2 , 0) of S, the vector I gives rise, by the usual rules of transformation of indices by blowing-ups, to systems of indices along components of the total transformS of S at points of the divisor E = π −1 (0) satisfying: (a) at any singular point ofS the two indices along the branches ofS do not belong to Q ≥0 and they are mutually inverse; (b) the sum of the indices along a component D of E for all points in D is equal to the self-intersection of D in M. This construction is used to show the existence of logarithmic models of real analytic foliations which are real generalized curves. Applications to real center-focus foliations are considered.