How to automatically set the server date/time when adding data?

@dadoonet hmm I can't find aJava API to use copy_from, it seems to be missing. This is what I'm trying:

        client.ingest().putPipeline(b0 -> b0
            .id("set-timestamp")
            .description("Set pingDate to be the server date/time and fill firstPingDate if empty")
            .processors(b1 -> b1
                .set(b2 -> b2
                    .field(PROPERTY_PING_DATE)
                    .value(JsonData.of("{{{_ingest.timestamp}}}")))
                .set(b3 -> b3
                    .override(false)
                    .field(PROPERTY_FIRST_PING_DATE)
                    .copy_from(PROPERTY_PING_DATE)
                )));

BTW the second set() isn't correct syntactically. How do I setup 2 "set" processors using the java API?

Thx!