Parser Getting Started¶
In this chapter we will ship a new punch parser using the maven toolkit, and deploy it as part of a channel. You need maven and java installed on your laptop.
Once done, somewhere adequate for development, execute the following command:
mvn archetype:generate \ -DarchetypeGroupId=org.thales.punch \ -DarchetypeArtifactId=parser \ -DarchetypeVersion=1.0.0 \ -DgroupId=com.mycompany \ -DartifactId=myparser
Have now a look at the
myparser channel. That parser indicates it needs the myparser-1.0-SNAPSHOT
package and refer to the enrich.punch and resource files provided by that package.
You should be able to start that parser. The simplest is to use the foreground command:
punchlinectl punchline.yaml ```` Use the injector file to try it: ```sh punchplatform-log-injector.sh injector.json