美文网首页
StreamSets tutorial(hxd-55.107:p

StreamSets tutorial(hxd-55.107:p

作者: crazydane | 来源:发表于2017-06-22 13:01 被阅读0次

    Origins

    • directory

    import data from server directory

    {"@timestamp":"2017-04-19T07:49:22.014Z",
    "beat":{
             "hostname":"A1799-SNDS-01"
             },
    "fields":{
                "file_type":"log",
                "table_name":"OTH_SLIDER_LOG"
                },
    "message":"[01/17/201715:30:03]\nHEAD_SN;TEST_TIME,ZONE,SETUP;GRADE,MARKING,PROJ_CODE,RESULT,TESTER,TRACK,UP_DN,PROJECTFILE,LOT_NO,SOFTWARE_VER,OUTPUTFILE,SKIPTEST,FIXTUREID;ADC,AEAD_DETECTION,AEAD_HB,AEAD_LB,BER,BERI,BPIC,CAL1_1R,CAL1_2R,CAL1_3R,CAL2_1R,CAL2_2R,CAL2_3R,CAL3_1R,CAL3_3R,CAL_1R,CAL_2R,CAL_3R,CHECK_FAULT,COV_,DAMP,DASY,DBER,DBLW,DCOV,DELTA_MRR,DMRR,DNSH1,FFAIL,FHA2_R,FHA2_W,FHA_AE,FHA_HTD2,FHA_S,FHA_TD,HDI_R,HEADPERMEDIA,HOLDER_NO,HRR_R,HRR_W,HR_RTD_POWER,HR_RTD_SPACING,HW_RTD_POWER,HW_RTD_SPACING,HW_WTD_POWER,HW_WTD_SPACING,IDTD,LFTAA,LOADER_NO,MEDIANO,MEDIA_FLAG,MF_R,MRR_,MRW,MT10,MT50,MTS,MWW,NLD_,NLTS,NLTSN,NRRO_SIGMA,ODTD,OW2_13T_2T,PES_SIGMA,PIN_REVERSE,PT50,PT50_AVG,PT50_AVG_NM,PT50_NM,P_FHA_AE,P_FHA_LP,P_FHA_R,P_FHA_RP,P_FHA_TD,P_FHA_W,P_FHA_WP,QMRR,QSPT,R2_L,R2_R,RESM,RMSP,RRO_SIGMA,RSSP,RWOFFSET,RWOP,R_ACNOISE,R_ATE_BER,R_COV_,R_DASY,R_DELTA2BER,R_DELTABER,R_DNSH_FHA,R_DTAA,R_NLTS,R_NOISECOUNT,R_NSH(MV),R_SNRNSH,R_SNRNSH2,R_SNR_,R_SNR_F,R_TAAL,R_TAAM,R_TAAML,R_TD_WRITER,SERVOGATE,SGSYNCRATIO,SNRIN,SNRP,SNRT,SNSH,SPEC_VERSION,SPOT,SQBER,STE_LEFT,STE_RIGHT,TAAA,TAALF,TAAMF,TAAN,TAAP,TD_WRITER,TIMEASYN,TPIC,TTIME,TTSNRRW,ULDMRR,ULMRR,WIAM,WIAS,WI_P,WPE,WRR_COIL,WSMI,WSSNR,WSS_\n6G0CH32H53,01/17/2017 15:38:48,MD,MP,A6,N,TSDH30,PASS,IHSMK79,245736,1,TSDH30 MP-A MCB,-,RDC DP B136.02 DEC 31 2015 16:05,PE-47  N170117M    IHSMK79,,BDCC1-D03-1-00005,,0.00000,831.37176,740.52279,-2.90971,,,-1.92687,-0.86185,-5.16841,-7.10707,1.05136,,1.07481,0.96783,-2.63997,,1.04023,0.00000,0.00510,,,,,,,,,,0.03684,0.03004,1.00000,-0.13861,-0.26064,100.00000,67.91380,280,C050383,85.95435,86.96445,44.53932,-8.61761,45.40117,-6.38817,,,,-7.22118,IHSLD2-N01,D0000699327,1.73759,0.00000,387.33800,42.70301,,,,67.26734,,,,1.26149,,,1.49340,,,,,,-6.47678,-8.89124,0.03684,36.73609,100000000000000.00000,0.03004,30.32353,,,,,63.09948,0.00000,0.79943,,-24.17892,,,,0.00991,,,,0.00000,0.05542,,,,,100.00000,,,,,,,,100.00000,,,,,REV I8A,1.00000,-1.75346,,,,25.08898,15.75527,0.03059,-4.42187,,25.88,,20,,,,,,1.55581,69.12897,4.42787,,,\n ",
    "offset":3226,
    "source":"C:\\workspace\\agent\\tester_instance_1\\data_files\\SLIDER_DP20170117153(Dn2com02).log",
    "tags":["TE_Department"],
    "type":"LOG_DEFAULT"}
    
    .
    configuration
    preview result

    processor

    • Field remover

    remove the unused fields


    .
    configuration
    preview result
    • Field renamer

    rename a field.


    .
    configuration
    preview result
    • Expression evaluator

    perform calculations on field-by-field basis


    .
    configuration
    preview result
    • Field Flattened

    The processor can flatten the entire record to produce a record with no nested fields.



    configuration
    preview result
    • Field Type Converter

    convert the field's type


    .
    configuration

    destinations

    相关文章

      网友评论

          本文标题:StreamSets tutorial(hxd-55.107:p

          本文链接:https://www.haomeiwen.com/subject/njgxcxtx.html