A measurement of electroweak-induced production of Wγ and two jets is performed, where the W boson decays leptonically. The data used in the analysis correspond to an integrated luminosity of 19.7 fb−1 collected by the CMS experiment in s=8 TeV proton-proton collisions produced at the LHC. Candidate events are selected with exactly one muon or electron, missing transverse momentum, one photon, and two jets with large rapidity separation. An excess over the hypothesis of the standard model without electroweak production of Wγ with two jets is observed with a significance of 2.7 standard deviations. The cross section measured in the fiducial region is 10.8 ± 4.1(stat) ± 3.4(syst) ± 0.3(lumi) fb, which is consistent with the standard model electroweak prediction. The total cross section for Wγ in association with two jets in the same fiducial region is measured to be 23.2 ± 4.3(stat) ± 1.7(syst) ± 0.6(lumi) fb, which is consistent with the standard model prediction from the combination of electroweak and quantum chromodynamics-induced processes. No deviations are observed from the standard model predictions and experimental limits on anomalous quartic gauge couplings fM,0−7/Λ4, fT,0−2/Λ4, and fT,5−7/Λ4 are set at 95% confidence level.[Figure not available: see fulltext.].