UNPKG

node-red-contrib-grok

Version:
43 lines (40 loc) 1.08 kB
<script type="text/javascript"> RED.nodes.registerType('grok', { category: 'Regex', color: '#FFCC66', defaults: { field: { value:"payload", required: true }, regex: { value: ".+", required: true } }, inputs: 1, outputs: 1, icon: 'grok.png', paletteLabel: 'Grok', label: function () { return 'Grok'; } }); </script> <script type="text/x-red" data-template-name="grok"> <div class="form-row"> <div class="form-row" style="margin-top:25px;"> <label for="node-input-regex" style="display:block;width:100%;">Regex</label> <input type="text" id="node-input-regex" placeholder=""> <div class="redbot-form-hint"> Filter using node-grok </div> </div> <div class="form-row" style="margin-top:25px;"> <label for="node-input-field" style="display:block;width:100%;">Parse Field message</label> <input type="text" id="node-input-field" placeholder="payload"> </div> </script> <script type="text/x-red" data-help-name="grok"> <p>Grok</p> </script>