Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Added key-delimiter() option for json-parser() #119

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Content/Guides/syslog-ng-guide-admin/json-parser-options.htm
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,30 @@ <h6>Example: Convert logstash eventlog format v0 to v1</h6>
};</pre>
</div>
</div>
<div>
<h6 name="json-parser-key-delimiter"><a name="json-parser-key-delimiter"></a>key-delimiter()</h6>
<MadCap:keyword term="key-delimiter">
</MadCap:keyword>
<table cellspacing="0" class="TableStyle-RuledTableWithHeading_DoNotEdit" colsep="0" rowsep="0" style="width: 100%;mc-table-style: url('../../Resources/TableStyles/RuledTableWithHeading_DoNotEdit.css');">
<tbody>
<tr class="TableStyle-RuledTableWithHeading_DoNotEdit-Body-Body1">
<td class="TableStyle-RuledTableWithHeading_DoNotEdit-BodyE-Column1-Body1">Type:</td>
<td class="TableStyle-RuledTableWithHeading_DoNotEdit-BodyD-Column1-Body1">character</td>
</tr>
<tr class="TableStyle-RuledTableWithHeading_DoNotEdit-Body-Body1">
<td class="TableStyle-RuledTableWithHeading_DoNotEdit-BodyB-Column1-Body1">Default:</td>
<td class="TableStyle-RuledTableWithHeading_DoNotEdit-BodyA-Column1-Body1">.</td>
</tr>
</tbody>
<col class="TableStyle-RuledTableWithHeading_DoNotEdit-Column-Column1" style="width: 0.3in;">
</col>
</table>
<p><i style="font-style: normal;">Description:</i> The <span class="Code">key-delimiter()</span> option defines the used character when parsing flattened keys. Only single characters are supported.</p>
<p>Using the <span class="Code">json-parser()</span> without the <span class="Code">key-delimiter()</span> option results in the dot(<span class="Code">.</span>) character being used:</p>
<p><pre>foo.key="value"</pre></p>
<p>Using the <span class="Code">json-parser()</span> with the <span class="Code">key-delimiter("~")</span> option results in the defined character being used:</p>
<p><pre>foo~key="value"</pre></p>
</div>
<div>
<h6 name="json-parser-marker"><a name="json-parser-marker"></a>marker</h6>
<MadCap:keyword term="marker">
Expand Down