Skip to content

Instantly share code, notes, and snippets.

@alopresto
Created February 17, 2017 06:13
Show Gist options
  • Save alopresto/461cd12b64336ffc65cab093c0a491fc to your computer and use it in GitHub Desktop.
Save alopresto/461cd12b64336ffc65cab093c0a491fc to your computer and use it in GitHub Desktop.
Example log output after newline replace and multiline split.
2017-02-16 22:12:09,569 INFO [Timer-Driven Process Thread-4] o.a.n.processors.standard.LogAttribute LogAttribute[id=015a1000-919e-1aa8-b90e-7f11869b6d91] logging for flow file StandardFlowFileRecord[uuid=5cf9b054-a760-46dd-a118-d0bea7dc3bb9,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1487311925514-1, container=default, section=1], offset=520, length=124],offset=0,name=92509598133110,size=124]
--------------------------------------------------
Standard FlowFile Attributes
Key: 'entryDate'
Value: 'Thu Feb 16 22:12:09 PST 2017'
Key: 'lineageStartDate'
Value: 'Thu Feb 16 22:12:09 PST 2017'
Key: 'fileSize'
Value: '124'
FlowFile Attribute Map Content
Key: 'filename'
Value: '92509598133110'
Key: 'path'
Value: './'
Key: 'uuid'
Value: '5cf9b054-a760-46dd-a118-d0bea7dc3bb9'
--------------------------------------------------
No,NAme,ID,Description
1,Stack,232,"ABCDEFGHIJKLMNO\n -- Jiuaslkm asdasdasd"
2,Queue,454,"PQRSTUVWXYZ\n -- Other words here"
2017-02-16 22:12:09,591 INFO [Timer-Driven Process Thread-4] o.a.n.processors.standard.LogAttribute LogAttribute[id=4aa8919e-015a-1000-ece6-33a6785c2d6b] logging for flow file StandardFlowFileRecord[uuid=7c6417fd-2822-4619-bc76-d2e17508a487,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1487311925514-1, container=default, section=1], offset=644, length=70],offset=0,name=92509632678688,size=70]
--------------------------------------------------
Standard FlowFile Attributes
Key: 'entryDate'
Value: 'Thu Feb 16 22:12:09 PST 2017'
Key: 'lineageStartDate'
Value: 'Thu Feb 16 22:12:09 PST 2017'
Key: 'fileSize'
Value: '70'
FlowFile Attribute Map Content
Key: 'filename'
Value: '92509632678688'
Key: 'fragment.count'
Value: '2'
Key: 'fragment.identifier'
Value: '1da8a52b-1684-47b0-9e57-a58f12b027bb'
Key: 'fragment.index'
Value: '2'
Key: 'fragment.size'
Value: '70'
Key: 'path'
Value: './'
Key: 'segment.original.filename'
Value: '92509598133110'
Key: 'text.line.count'
Value: '1'
Key: 'uuid'
Value: '7c6417fd-2822-4619-bc76-d2e17508a487'
--------------------------------------------------
No,NAme,ID,Description
2,Queue,454,"PQRSTUVWXYZ\n -- Other words here"
2017-02-16 22:12:09,594 INFO [Timer-Driven Process Thread-6] o.a.n.processors.standard.LogAttribute LogAttribute[id=4aa8919e-015a-1000-ece6-33a6785c2d6b] logging for flow file StandardFlowFileRecord[uuid=b8bd80fc-5a85-4466-a42e-09aa0b9b3219,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1487311925592-2, container=default, section=2], offset=386, length=76],offset=0,name=92509632173979,size=76]
--------------------------------------------------
Standard FlowFile Attributes
Key: 'entryDate'
Value: 'Thu Feb 16 22:12:09 PST 2017'
Key: 'lineageStartDate'
Value: 'Thu Feb 16 22:12:09 PST 2017'
Key: 'fileSize'
Value: '76'
FlowFile Attribute Map Content
Key: 'filename'
Value: '92509632173979'
Key: 'fragment.count'
Value: '2'
Key: 'fragment.identifier'
Value: '1da8a52b-1684-47b0-9e57-a58f12b027bb'
Key: 'fragment.index'
Value: '1'
Key: 'fragment.size'
Value: '76'
Key: 'path'
Value: './'
Key: 'segment.original.filename'
Value: '92509598133110'
Key: 'text.line.count'
Value: '1'
Key: 'uuid'
Value: 'b8bd80fc-5a85-4466-a42e-09aa0b9b3219'
--------------------------------------------------
No,NAme,ID,Description
1,Stack,232,"ABCDEFGHIJKLMNO\n -- Jiuaslkm asdasdasd"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment