<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to write json log data to be ingested? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-write-json-log-data-to-be-ingested/m-p/651553#M110654</link>
    <description>&lt;P&gt;Thanks a lot for the advice!&lt;/P&gt;&lt;P&gt;My concern was the multi-line-ness of the json, but I realize now I Can just output as a single line and that should be fine to append.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jul 2023 20:06:48 GMT</pubDate>
    <dc:creator>rufflabs</dc:creator>
    <dc:date>2023-07-21T20:06:48Z</dc:date>
    <item>
      <title>How to write json log data to be ingested?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-write-json-log-data-to-be-ingested/m-p/651539#M110648</link>
      <description>&lt;P&gt;I have a script that I am generating a json formatted log file entries. I want to get this data into Splunk. What is the best way to write the data to disk to be monitored and ingested?&lt;/P&gt;
&lt;P&gt;Should I just append json data into a single file, or should the log file have only one entry at a time, and I overwrite/clear the file each time I need to add new data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 18:28:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-write-json-log-data-to-be-ingested/m-p/651539#M110648</guid>
      <dc:creator>rufflabs</dc:creator>
      <dc:date>2023-07-21T18:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to write json log data to be ingested?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-write-json-log-data-to-be-ingested/m-p/651541#M110649</link>
      <description>&lt;P&gt;You should normally append to the log file. This helps Splunk keep track of what it has already ingested and not miss anything in case where the forwarder is slow (for some reason) and you overwrite the entry before Splunk has picked it up.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 18:31:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-write-json-log-data-to-be-ingested/m-p/651541#M110649</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-21T18:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to write json log data to be ingested?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-write-json-log-data-to-be-ingested/m-p/651547#M110652</link>
      <description>&lt;P&gt;Adding to &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt; 's answer - you might want to keep your jsons single-line and keep each of them in separate lines - that greatly helps with splitting the stream into single events. With multiline events finding where one event ends and another starts can get tricky.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 19:02:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-write-json-log-data-to-be-ingested/m-p/651547#M110652</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-07-21T19:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to write json log data to be ingested?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-write-json-log-data-to-be-ingested/m-p/651553#M110654</link>
      <description>&lt;P&gt;Thanks a lot for the advice!&lt;/P&gt;&lt;P&gt;My concern was the multi-line-ness of the json, but I realize now I Can just output as a single line and that should be fine to append.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 20:06:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-write-json-log-data-to-be-ingested/m-p/651553#M110654</guid>
      <dc:creator>rufflabs</dc:creator>
      <dc:date>2023-07-21T20:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to write json log data to be ingested?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-write-json-log-data-to-be-ingested/m-p/651623#M110673</link>
      <description>This also saves license as there are no line breaks and additional spaces for formatting it nicely.</description>
      <pubDate>Sat, 22 Jul 2023 17:16:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-write-json-log-data-to-be-ingested/m-p/651623#M110673</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-07-22T17:16:51Z</dc:date>
    </item>
  </channel>
</rss>

